From 513b3b5d4f5cdd2ce558273295cb1fd7ae3f9838 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Sun, 16 Jun 2024 06:10:23 +0200 Subject: [PATCH] Create wiiu.yml --- .github/workflows/wiiu.yml | 79 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 .github/workflows/wiiu.yml diff --git a/.github/workflows/wiiu.yml b/.github/workflows/wiiu.yml new file mode 100644 index 000000000..4f6a4796c --- /dev/null +++ b/.github/workflows/wiiu.yml @@ -0,0 +1,79 @@ +--- +name: Nintendo Wii U + +on: # yamllint disable-line rule:truthy + push: + branches: + - master + paths-ignore: + - '*.md' + - 'docs/**' + pull_request: + types: [opened, synchronize] + paths-ignore: + - '*.md' + - 'docs/**' + release: + types: [published] + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-latest + container: devkitpro/devkitppc:latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Install dependencies + run: | + apt-get update -y && \ + apt-get install -y --no-install-recommends --no-install-suggests \ + gettext smpq + + - name: Configure CMake + run: | + /opt/devkitpro/portlibs/wiiu/bin/powerpc-eabi-cmake \ + -S . \ + -B build \ + -D CMAKE_BUILD_TYPE=RelWithDebInfo + + - name: Build DevilutionX + run: cmake --build build -j 2 + + - name: Upload Package (RPX) + if: ${{ !env.ACT }} + uses: actions/upload-artifact@v4 + with: + name: devilutionx.rpx + path: ./build/devilutionx.rpx + + - name: Upload Package (WUHB) + if: ${{ !env.ACT }} + uses: actions/upload-artifact@v4 + with: + name: devilutionx.wuhb + path: ./build/devilutionx.wuhb + + - name: Update Release (RPX) + if: ${{ github.event_name == 'release' && !env.ACT }} + uses: svenstaro/upload-release-action@v2 + with: + asset_name: devilutionx-wiiu.rpx + file: ./build/devilutionx.rpx + overwrite: true + + - name: Update Release (WUHB) + if: ${{ github.event_name == 'release' && !env.ACT }} + uses: svenstaro/upload-release-action@v2 + with: + asset_name: devilutionx-wiiu.wuhb + file: ./build/devilutionx.wuhb + overwrite: true +...