Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CPack Support #254

Merged
merged 4 commits into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@ jobs:
- name: Configure Project
run: cmake --preset default

- name: Install Project
run: cmake --install build --prefix install
- name: Package Project
run: cpack --preset default

- name: Upload Project
uses: actions/upload-artifact@v4.4.0
with:
name: Assertion
path: install
path: build/*.tar.gz
if-no-files-found: error
overwrite: true
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
!.git*

build
install
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,7 @@ if(ASSERTION_ENABLE_INSTALL)
cmake/AssertionConfig.cmake
${CMAKE_CURRENT_BINARY_DIR}/cmake/AssertionConfigVersion.cmake
DESTINATION lib/cmake/Assertion)

set(CPACK_SYSTEM_NAME any)
include(CPack)
endif()
11 changes: 9 additions & 2 deletions CMakePresets.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"version": 3,
"version": 6,
"cmakeMinimumRequired": {
"major": 3,
"minor": 21
"minor": 25
},
"configurePresets": [
{
Expand All @@ -28,5 +28,12 @@
"noTestsAction": "error"
}
}
],
"packagePresets": [
{
"name": "default",
"configurePreset": "default",
"generators": ["TGZ"]
}
]
}