-
Notifications
You must be signed in to change notification settings - Fork 4
54 lines (41 loc) · 1.6 KB
/
ci.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Build
# 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: [us]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Install package requirements
run: sudo apt-get install -y make git build-essential clang binutils-mips-linux-gnu gcc-mips-linux-gnu python3 python3-pip clang-format-14 clang-tidy-14
- name: Install Python dependencies
run: pip3 install -r requirements.txt
- name: Get extra dependencies
uses: actions/checkout@v4
with:
repository: ${{ secrets.SECRETREPO }}
token: ${{ secrets.SECRETTOKEN }}
path: deps_repo
- name: Get the dependency
run: cp deps_repo/yoshis-story/* baseroms/us/baserom.z64
- name: venv
run: make venv -j $(nproc) VERSION=${{ matrix.version }}
- name: Setup
run: make setup -j $(nproc) VERSION=${{ matrix.version }}
# - name: Build libraries
# run: make lib -j $(nproc) VERSION=${{ matrix.version }}
- name: Disassemble and extraction
run: make extract -j $(nproc) VERSION=${{ matrix.version }}
- name: Build Rom
run: make -j $(nproc) WERROR=1 VERSION=${{ matrix.version }}
- name: Upload frogress
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
run: python3 tools/upload_frogress.py ${{ matrix.version }} --apikey ${{ secrets.PROGRESS_API_KEY }}