2024-03-01 21:12:22 +00:00
|
|
|
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: |
|
2024-03-23 16:38:05 +00:00
|
|
|
cd ../
|
|
|
|
rm -rf oot/
|
2024-03-01 21:12:22 +00:00
|
|
|
git clone https://github.com/zeldaret/oot.git
|
|
|
|
cd oot
|
2024-03-23 16:38:05 +00:00
|
|
|
echo $(pwd)
|
2024-03-01 21:12:22 +00:00
|
|
|
git submodule update --init --recursive
|
|
|
|
|
|
|
|
- name: Checkout mm
|
|
|
|
run: |
|
2024-03-23 16:38:05 +00:00
|
|
|
cd ../
|
|
|
|
rm -rf mm/
|
2024-03-01 21:12:22 +00:00
|
|
|
git clone https://github.com/zeldaret/mm.git
|
|
|
|
cd mm
|
2024-03-23 16:38:05 +00:00
|
|
|
echo $(pwd)
|
2024-03-01 21:12:22 +00:00
|
|
|
|
|
|
|
- name: Set up repos
|
|
|
|
run: echo "Set up repos"
|
|
|
|
|
|
|
|
- name: Setup OOT
|
|
|
|
run: |
|
2024-03-23 16:38:05 +00:00
|
|
|
cd ../
|
2024-03-01 21:12:22 +00:00
|
|
|
cd oot
|
2024-03-23 16:38:05 +00:00
|
|
|
echo $(pwd)
|
2024-03-01 21:12:22 +00:00
|
|
|
mkdir -p baseroms/gc-eu-mq-dbg/segments
|
|
|
|
cp ~/baserom_original.z64 ./baseroms/gc-eu-mq-dbg/baserom.z64
|
2024-03-23 16:38:05 +00:00
|
|
|
cd tools
|
|
|
|
rm -rf ZAPD/
|
|
|
|
ln -s ../../ZAPD
|
|
|
|
cd ../
|
|
|
|
make -j $(nproc) setup
|
2024-03-01 21:12:22 +00:00
|
|
|
|
|
|
|
- name: Setup MM
|
|
|
|
run: |
|
2024-03-23 16:38:05 +00:00
|
|
|
cd ../
|
2024-03-01 21:12:22 +00:00
|
|
|
cd mm
|
2024-03-23 16:38:05 +00:00
|
|
|
echo $(pwd)
|
2024-03-01 21:12:22 +00:00
|
|
|
python3 -m venv .mm-env
|
|
|
|
source .mm-env/bin/activate
|
|
|
|
python3 -m pip install -r requirements.txt
|
|
|
|
cp ~/baserom.mm.us.rev1.z64 ./baserom.mm.us.rev1.z64
|
2024-03-23 16:38:05 +00:00
|
|
|
cd tools
|
|
|
|
rm -rf ZAPD/
|
|
|
|
ln -s ../../ZAPD
|
|
|
|
cd ../
|
2024-03-01 21:12:22 +00:00
|
|
|
make -C tools -j
|
|
|
|
python3 tools/fixbaserom.py
|
|
|
|
python3 tools/extract_baserom.py
|
|
|
|
python3 tools/decompress_yars.py
|
|
|
|
python3 extract_assets.py -j $(nproc)
|
|
|
|
|
|
|
|
- name: Build Repos
|
|
|
|
run: echo "Build Repos"
|
|
|
|
|
|
|
|
- name: Build oot
|
|
|
|
run: |
|
2024-03-23 16:38:05 +00:00
|
|
|
cd ../
|
2024-03-01 21:12:22 +00:00
|
|
|
cd oot
|
2024-03-23 16:38:05 +00:00
|
|
|
echo $(pwd)
|
2024-03-01 21:12:22 +00:00
|
|
|
make venv
|
|
|
|
make -j
|
|
|
|
|
|
|
|
- name: Build mm
|
|
|
|
run: |
|
2024-03-23 16:38:05 +00:00
|
|
|
cd ../
|
2024-03-01 21:12:22 +00:00
|
|
|
cd mm
|
2024-03-23 16:38:05 +00:00
|
|
|
echo $(pwd)
|
2024-03-01 21:12:22 +00:00
|
|
|
python3 -m venv .mm-env
|
|
|
|
source .mm-env/bin/activate
|
|
|
|
python3 -m pip install -r requirements.txt
|
|
|
|
make -j disasm
|
|
|
|
make -j
|
|
|
|
|
|
|
|
- name: Clean workspace
|
|
|
|
run: git clean -fdX
|