-
Notifications
You must be signed in to change notification settings - Fork 34
52 lines (50 loc) · 1.55 KB
/
Copy pathmain.yml
File metadata and controls
52 lines (50 loc) · 1.55 KB
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
name: build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
if: ${{ github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'push' }}
runs-on: ubuntu-24.04
steps:
- name: Checkout this repo
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install system packages
run: |
sudo apt-get update
sudo apt-get install -y $(cat packages.txt | tr '\n' ' ')
- name: Install Python packages and setup environment
run: |
python3 -m venv .venv
. .venv/bin/activate
pip3 install -r requirements.txt
- name: Download IDO static recomp
run: |
. .venv/bin/activate
python3 ./dino.py update-ido
- name: Checkout baserom
uses: actions/checkout@v2
with:
repository: zestydevy/dinosaur-planet-private
token: ${{ secrets.PRIVATE_REPO_ACCESS }}
path: baserom
- name: Decrypt baserom
run: echo ${{ secrets.DINOSAUR_PLANET_BASEROM }} | openssl enc -d -aes-256-cbc -pass stdin -pbkdf2 -in baserom/baserom.z64.aes -out baserom.z64
- name: Extract ROM
run: |
. .venv/bin/activate
python3 ./dino.py extract
- name: Build (matching)
run: |
. .venv/bin/activate
python3 ./dino.py configure
python3 ./dino.py build
- name: Build (non-matching, non-equivalent)
run: |
. .venv/bin/activate
python3 ./dino.py configure --all-code
python3 ./dino.py build --no-verify