summaryrefslogtreecommitdiff
path: root/.github/workflows/build.yml
blob: ab144e5712856a1ed665259e81d707d2fab90008 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Build

on:
  push:
  pull_request:

jobs:
  build:
    container: ghcr.io/zeldaret/ph-build:main

    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        version: [eur, usa]

    steps:
      - name: Checkout
        uses: actions/checkout@v4
        with:
          submodules: recursive

      - name: Prepare
        run: |
          mv /extract/* ./extract

      - name: Build
        run: |
          python tools/configure.py ${{ matrix.version }} -w wibo --compiler /mwccarm --no-extract
          ninja arm9 report check

      - name: Upload report
        uses: actions/upload-artifact@v4
        with:
          name: ${{ matrix.version }}_report
          path: build/${{ matrix.version }}/report.json