cmake: add CPack support for creating binary archives
This commit is contained in:
committed by
Anonymous Maarten
parent
64c97906c9
commit
53d434fd24
10
.github/workflows/ps2.yml
vendored
10
.github/workflows/ps2.yml
vendored
@@ -34,7 +34,7 @@ jobs:
|
||||
-DSDL_TESTS=ON \
|
||||
-DCMAKE_INSTALL_PREFIX=cmake_prefix \
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
- name: Build
|
||||
- name: Build (CMake)
|
||||
run: cmake --build build --config Release --verbose --parallel
|
||||
- name: Install (CMake)
|
||||
run: |
|
||||
@@ -42,6 +42,9 @@ jobs:
|
||||
cmake --install build/ --config Release
|
||||
echo "SDL3_DIR=$(pwd)/cmake_prefix" >> $GITHUB_ENV
|
||||
( cd cmake_prefix; find ) | LC_ALL=C sort -u
|
||||
- name: Package (CPack)
|
||||
run: |
|
||||
cmake --build build/ --config Release --target package
|
||||
|
||||
- name: Verify CMake configuration files
|
||||
run: |
|
||||
@@ -70,3 +73,8 @@ jobs:
|
||||
name: tests-${{ steps.slug.outputs.sha8 }}
|
||||
path: |
|
||||
build/test
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
if-no-files-found: error
|
||||
name: SDL-ps2
|
||||
path: build/dist/SDL3*
|
||||
|
||||
Reference in New Issue
Block a user