From 194b8809e73ac0c53593b9b35322bf5ec8ad52da Mon Sep 17 00:00:00 2001 From: Daniel Thamdrup Date: Mon, 5 Feb 2024 12:18:29 +0100 Subject: [PATCH] build vita in the nightly job Signed-off-by: Daniel Thamdrup --- .github/workflows/nightly.yml | 48 +++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 97e49f72cbf..20449b10be8 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -746,6 +746,54 @@ jobs: name: ${{ matrix.artifact }} path: build-ps4/devilutionx-ps4.pkg + # vita-builds + build_vita: + needs: build_check + if: ${{ needs.build_check.outputs.should_run != 'false' }} + name: Nightly-VITA + strategy: + fail-fast: false + matrix: + #name: [diablo, hellfire] + include: + - name: diablo + cmakeargs: '-DNONET=ON' + artifact: 'diablo-nightly-vita.vpk' + - name: hellfire + cmakeargs: '-DNONET=ON -DHELLFIRE=ON' + artifact: 'hellfire-nightly-vita.vpk' + - name: diablo-vita + cmakeargs: '-DNONET=ON -D USE_PATCH=ON' + artifact: 'diablo-nightly-vita.vpk' + - name: hellfire-vita + cmakeargs: '-DNONET=ON -D USE_PATCH=ON -DHELLFIRE=ON' + artifact: 'hellfire-nightly-vita.vpk' + runs-on: ubuntu-22.04 + container: vitasdk/vitasdk:latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Create Build Environment + run: apk add git ninja gettext + + - name: Configure CMake + run: | + cmake -S. -Bbuild -GNinja \ + -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} ${{ matrix.cmakeargs }} \ + -DCMAKE_TOOLCHAIN_FILE=${VITASDK}/share/vita.toolchain.cmake + + - name: Build + run: cmake --build build -j $(sysctl -n hw.physicalcpu) + + - name: Upload Package + uses: actions/upload-artifact@v4 + with: + name: ${{ matrix.artifact }} + path: ./build/devilutionx.vpk + # Releases release: needs: [build_check, build_msvc, build_mingw, build_mingw_x64, build_mac, build_ios, build_android, build_rg350, build_lepus, build_retrofw, build_ps4]