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

@@ -50,6 +50,13 @@ jobs:
run: |
cmake -S . -B build -GNinja \
-Wdeprecated -Wdev -Werror \
-DCMAKE_BUILD_TYPE=Release \
-DSDL_CHECK_REQUIRED_INCLUDES="/usr/local/include" \
-DSDL_CHECK_REQUIRED_LINK_OPTIONS="-L/usr/local/lib"
cmake --build build --verbose -- -j`sysctl -n hw.ncpu`
cmake --build build/ --config Release --verbose -- -j`sysctl -n hw.ncpu`
cmake --build build/ --config Release --target package
- uses: actions/upload-artifact@v3
with:
if-no-files-found: error
name: SDL-freebsd
path: build/dist/SDL3*