-
Notifications
You must be signed in to change notification settings - Fork 34
80 lines (65 loc) · 1.64 KB
/
main.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: Build ZAPD
on:
push:
pull_request:
branches:
- master
jobs:
build:
runs-on: self-hosted-runner
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Build ZAPD
run: make -j WERROR=1
- name: Checkout Repos
run: echo "Checkout Repos"
- name: Checkout oot
run: |
git clone https://github.com/zeldaret/oot.git
cd oot
git submodule update --init --recursive
- name: Checkout mm
run: |
git clone https://github.com/zeldaret/mm.git
cd mm
- name: Set up repos
run: echo "Set up repos"
- name: Setup OOT
run: |
cd oot
cp ~/baserom_original.z64 ./baserom_original.z64
make -C tools -j
cp ../ZAPD.out tools/ZAPD/
python3 fixbaserom.py
python3 extract_baserom.py
python3 extract_assets.py
- name: Setup MM
run: |
cd mm
cp ~/baserom.mm.us.rev1.z64 ./baserom.mm.us.rev1.z64
make -C tools -j
cp ../ZAPD.out tools/ZAPD/
python3 tools/fixbaserom.py
python3 tools/extract_baserom.py
python3 tools/decompress_yars.py
python3 extract_assets.py -j $(nproc)
- name: Install Python dependencies
run: |
cd mm
python3 -m venv .mm-env
source .mm-env/bin/activate
python3 -m pip install -r requirements.txt
- name: Build Repos
run: echo "Build Repos"
- name: Build oot
run: |
cd oot
make -j
- name: Build mm
run: |
cd mm
make -j disasm
make -j
- name: Clean workspace
run: git clean -fdX