summaryrefslogtreecommitdiff
path: root/lib/ultralib/.github/workflows/ci_ido.yml
blob: 14101081d16e4444609d0ea966af4508bcb23735 (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
37
38
39
40
41
# CI file for IDO builds

name: Build IDO libultra

# Build on every branch push, tag push, and pull request change:
on: [push, pull_request_target]

jobs:
  build_repo:
    name: Build repo
    runs-on: ubuntu-latest

    strategy:
      fail-fast: false
      matrix:
        version: [I, J, K, L] # [E, F, G, H, I, I_patch, J, K, L]
        suffix: [~, _rom] # [~, _d, _rom]

    steps:
    - name: Checkout repository
      uses: actions/checkout@v3
      with:
        ref: ${{ github.event.pull_request.head.sha }}

    - name: Install package requirements
      run: sudo apt-get install -y build-essential python3 binutils-mips-linux-gnu

    - name: Get extra dependencies
      uses: actions/checkout@v3
      with:
        repository: ${{ secrets.SECRETREPO }}
        token: ${{ secrets.SECRETTOKEN }}
        path: deps_repo
    - name: Get the dependency
      run: cp deps_repo/libultra/${{ matrix.version }}/* base/${{ matrix.version }}

    - name: Setup
      run: make setup -j $(nproc) TARGET=libultra${{ matrix.suffix }} VERSION=${{ matrix.version }}

    - name: Build libultra${{ matrix.suffix }} ${{ matrix.version }}
      run: make -j $(nproc) TARGET=libultra${{ matrix.suffix }} VERSION=${{ matrix.version }}