cmake: add CPack support for creating binary archives

This commit is contained in:
Anonymous Maarten
2023-01-29 06:12:40 +01:00
committed by Anonymous Maarten
parent 64c97906c9
commit 53d434fd24
14 changed files with 350 additions and 172 deletions

View File

@@ -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*