diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index c180e24..38db49c 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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 diff --git a/.gitignore b/.gitignore index e7ee752..18d647c 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,3 @@ !.git* build -install diff --git a/CMakeLists.txt b/CMakeLists.txt index e46ee91..6dd5672 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() diff --git a/CMakePresets.json b/CMakePresets.json index eeb08d8..7f7ab3b 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -1,8 +1,8 @@ { - "version": 3, + "version": 6, "cmakeMinimumRequired": { "major": 3, - "minor": 21 + "minor": 25 }, "configurePresets": [ { @@ -28,5 +28,12 @@ "noTestsAction": "error" } } + ], + "packagePresets": [ + { + "name": "default", + "configurePreset": "default", + "generators": ["TGZ"] + } ] }