Skip to content

Commit 5a972fe

Browse files
committed
reactivated package building (for ubuntu platform)
Update build_and_test.yml Update build_and_test.yml
1 parent 05a42c3 commit 5a972fe

File tree

2 files changed

+21
-7
lines changed

2 files changed

+21
-7
lines changed

.github/workflows/build_and_test.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,16 @@ jobs:
112112
name: coveralls.json
113113
path: coveralls.json
114114

115+
- name: Package
116+
working-directory: ${{github.workspace}}/build
117+
run: cmake --build . --target package
115118

116-
#- name: Package
119+
- uses: actions/upload-artifact@v4
120+
if: matrix.os == 'ubuntu-24.04'
121+
with:
122+
name: packages
123+
path: ${{github.workspace}}/build/Crow-*
124+
125+
#- name: Source package
117126
# working-directory: ${{github.workspace}}/build
118-
# run: |
119-
# cmake --build . --target ALL_BUILD && \
120-
# cmake --build . --target doc && \
121-
# cmake --build . --target package && \
122-
# cpack --config CPackSourceConfig.cmake
127+
# run: cpack --config CPackSourceConfig.cmake

CMakeLists.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,16 @@ if(CROW_INSTALL)
206206
)
207207
endif()
208208

209-
set(CPACK_GENERATOR "ZIP")
209+
if(WIN32 AND NOT CYGWIN)
210+
set(CPACK_GENERATOR NSIS ZIP)
211+
endif(WIN32 AND NOT CYGWIN)
212+
if(APPLE)
213+
set(CPACK_GENERATOR DragNDrop TGZ)
214+
endif(APPLE)
215+
if (UNIX AND NOT APPLE AND NOT WIN32)
216+
set(CPACK_GENERATOR DEB TGZ)
217+
endif (UNIX AND NOT APPLE AND NOT WIN32)
218+
210219
set(CPACK_PACKAGE_NAME "Crow")
211220
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "CrowCpp")
212221
set(CPACK_PACKAGE_VENDOR "CrowCpp")

0 commit comments

Comments
 (0)