Skip to content

Commit

Permalink
Update build_and_test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gittiver committed Sep 6, 2024
1 parent fb04caa commit 1aa3281
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,10 @@ jobs:
name: coveralls.json
path: coveralls.json


- name: Package
working-directory: ${{github.workspace}}/build
run: |
cmake --build . --target ALL_BUILD && \
cmake --build . --target doc && \
cmake --build . --target package && \
cpack --config CPackSourceConfig.cmake
run: cmake --build . --target package

- name: Source package
working-directory: ${{github.workspace}}/build
run: cpack --config CPackSourceConfig.cmake
12 changes: 11 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,17 @@ if(CROW_INSTALL)
)
endif()

set(CPACK_GENERATOR "ZIP")
set(CPACK_GENERATOR TGZ ZIP)
if(WIN32 AND NOT CYGWIN)
set(CPACK_GENERATOR NSIS ${CPACK_GENERATOR})
endif(WIN32 AND NOT CYGWIN)
if(APPLE)
set(CPACK_GENERATOR DragNDrop ${CPACK_GENERATOR})
endif(APPLE)
if (UNIX AND NOT APPLE AND NOT WIN32)
set(CPACK_GENERATOR DEB ${CPACK_GENERATOR})
endif (UNIX AND NOT APPLE AND NOT WIN32)

set(CPACK_PACKAGE_NAME "Crow")
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "CrowCpp")
set(CPACK_PACKAGE_VENDOR "CrowCpp")
Expand Down

0 comments on commit 1aa3281

Please sign in to comment.