Package assets in CI

This commit is contained in:
Christian Semmler 2025-08-10 13:01:40 -07:00
parent f0f5d103a5
commit 6470df7586

View File

@ -34,7 +34,7 @@ jobs:
fail-fast: false
matrix:
include:
- { name: 'Linux', os: 'ubuntu-latest', generator: 'Ninja', dx5: false, config: true, linux: true, werror: true, clang-tidy: true }
- { name: 'Linux', os: 'ubuntu-latest', generator: 'Ninja', dx5: false, config: true, linux: true, werror: true, clang-tidy: true, build-assets: true }
- { name: 'Linux (Debug)', os: 'ubuntu-latest', generator: 'Ninja', dx5: false, config: true, linux: true, werror: true, clang-tidy: true, debug: true }
- { name: 'MSVC (x86)', os: 'windows-latest', generator: 'Ninja', dx5: true, config: false, msvc: true, werror: false, clang-tidy: false, vc-arch: 'amd64_x86' }
- { name: 'MSVC (x64)', os: 'windows-latest', generator: 'Ninja', dx5: false, config: true, msvc: true, werror: false, clang-tidy: false, vc-arch: 'amd64' }
@ -113,6 +113,7 @@ jobs:
-DCMAKE_BUILD_TYPE=Release \
-DISLE_USE_DX5=${{ !!matrix.dx5 }} \
-DISLE_BUILD_CONFIG=${{ !!matrix.config }} \
-DISLE_BUILD_ASSETS=${{ !!matrix.build-assets }} \
-DENABLE_CLANG_TIDY=${{ !!matrix.clang-tidy }} \
-DISLE_WERROR=${{ !!matrix.werror }} \
-DISLE_DEBUG=${{ matrix.debug || 'OFF' }} \
@ -121,6 +122,10 @@ jobs:
- name: Build (CMake)
run: cmake --build build --verbose --config Release
- name: Package Assets Separately
if: matrix.build-assets
run: (cd build/assets && zip -r ../../isle-assets.zip .)
- name: Package (CPack)
if: ${{ !matrix.n3ds }}
run: |
@ -180,6 +185,8 @@ jobs:
build/dist/*.AppImage
build/dist/*.3dsx
build/dist/*.cia
isle-assets.zip
if-no-files-found: ignore
flatpak:
name: "Flatpak (${{ matrix.arch }})"