Skip to content

Sync BK bs files (#9) #35

Sync BK bs files (#9)

Sync BK bs files (#9) #35

Workflow file for this run

name: Build
# Build on every branch push, tag push, and pull request change:
on: [push, pull_request_target]
jobs:
build_repo:
name: Build repo (${{ matrix.version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version: [us]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install package requirements
run: sudo apt-get install -y make git build-essential binutils-mips-linux-gnu gcc-mips-linux-gnu python3 python3-pip libfmt-dev libtoml11-dev
- name: Install Python dependencies
run: pip3 install -r tools/requirements.txt
- name: Install Splat dependencies
run: pip3 install -r tools/splat/requirements.txt
- 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/baserom.${{ matrix.version }}.z64 baserom.${{ matrix.version }}.z64
- name: Setup
run: make setup -j $(nproc)
- name: Build Banjo-Tooie
run: make -j $(nproc)
- name: Print progress
run: python3 tools/progress.py --version ${{ matrix.version }}
- name: Upload frogress
if: ${{ github.ref == 'refs/heads/master' && github.event_name != 'pull_request_target' }}
run: python3 tools/upload_frogress.py ${{ matrix.version }} --apikey ${{ secrets.PROGRESS_API_KEY }}
- name: Upload map
uses: actions/upload-artifact@v3
with:
name: banjotooie.${{ matrix.version }}.map
path: build/${{ matrix.version }}/banjotooie_decompressed.map