forked from AmazingAmpharos/OoT-Randomizer
-
Notifications
You must be signed in to change notification settings - Fork 248
89 lines (84 loc) · 2.91 KB
/
Copy pathbuild.yml
File metadata and controls
89 lines (84 loc) · 2.91 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
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
81
82
83
84
85
86
87
88
name: Build
on:
push:
branches: [ "Dev" ]
pull_request:
branches: [ "Dev" ]
jobs:
test_assembly_build_head:
name: Build - Assembly - armips HEAD
runs-on: ubuntu-latest
container:
image: practicerom/practicerom-dev
strategy:
matrix:
python-version: ["3.x"]
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install armips dependencies
run: sudo apt-get update && sudo apt-get install -y cmake g++
- name: Checkout armips
uses: actions/checkout@v4
with:
submodules: recursive
repository: Kingcom/armips
ref: master
- name: Build armips
run: mkdir build && cd build && cmake .. && cmake --build . --config Release && sudo mv armips /usr/local/bin/armips && cd ..
- uses: actions/checkout@v4
- name: Create fake base ROM
run: dd if=/dev/zero of=ASM/roms/base.z64 bs=64M count=1
- name: Run build scripts
run: python ASM/build.py --no-compile-c --mips-binutils-prefix mips64-ultra-elf-
test_C_build:
name: Build - C
runs-on: ubuntu-latest
container:
image: practicerom/practicerom-dev
strategy:
matrix:
python-version: [ "3.x" ]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Create fake base ROM
run: dd if=/dev/zero of=ASM/roms/base.z64 bs=64M count=1
- name: Create fake patched ROM
run: dd if=/dev/zero of=ASM/roms/patched.z64 bs=64M count=1
- name: Run build scripts
run: python ASM/build.py --diff-only --mips-binutils-prefix mips64-ultra-elf-
test_full_build:
name: Build - Full
runs-on: ubuntu-latest
container:
image: practicerom/practicerom-dev
strategy:
matrix:
python-version: [ "3.x" ]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install armips dependencies
run: sudo apt-get update && sudo apt-get install -y cmake g++
- name: Checkout armips
uses: actions/checkout@v4
with:
submodules: recursive
repository: Kingcom/armips
ref: master
- name: Build armips
run: mkdir build && cd build && cmake .. && cmake --build . --config Release && sudo mv armips /usr/local/bin/armips && cd ..
- uses: actions/checkout@v4
- name: Create fake base ROM
run: dd if=/dev/zero of=ASM/roms/base.z64 bs=64M count=1
- name: Run build scripts
run: python ASM/build.py --mips-binutils-prefix mips64-ultra-elf-