Skip to content

Commit

Permalink
Setup GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
louist103 authored Jan 10, 2024
1 parent 9601f26 commit a0fb89e
Showing 1 changed file with 76 additions and 0 deletions.
76 changes: 76 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Build ZAPD

on:
push:
branches:
- main

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
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
cp ../ZAPD.out tools/ZAPD/
python3 tools/fixbaserom.py
python3 tools/extract_baserom.py
python3 extract_assets.py -j $(nproc)
- name: Install Python dependencies
run: |
cd mm
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

0 comments on commit a0fb89e

Please sign in to comment.