Skip to content

Commit

Permalink
reactivated package building (for ubuntu platform)
Browse files Browse the repository at this point in the history
Update build_and_test.yml

Update build_and_test.yml
  • Loading branch information
gittiver committed Nov 4, 2024
1 parent 05a42c3 commit 5a972fe
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,16 @@ jobs:
name: coveralls.json
path: coveralls.json

- name: Package
working-directory: ${{github.workspace}}/build
run: cmake --build . --target package

#- name: Package
- uses: actions/upload-artifact@v4
if: matrix.os == 'ubuntu-24.04'
with:
name: packages
path: ${{github.workspace}}/build/Crow-*

#- name: Source 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: cpack --config CPackSourceConfig.cmake
11 changes: 10 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,16 @@ if(CROW_INSTALL)
)
endif()

set(CPACK_GENERATOR "ZIP")
if(WIN32 AND NOT CYGWIN)
set(CPACK_GENERATOR NSIS ZIP)
endif(WIN32 AND NOT CYGWIN)
if(APPLE)
set(CPACK_GENERATOR DragNDrop TGZ)
endif(APPLE)
if (UNIX AND NOT APPLE AND NOT WIN32)
set(CPACK_GENERATOR DEB TGZ)
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 5a972fe

Please sign in to comment.