summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorlouist103 <35883445+louist103@users.noreply.github.com>2024-01-10 18:16:36 -0500
committerlouist103 <louist103@gmail.com>2024-01-14 12:09:19 -0500
commitaf6c1a869eb2ecb753525695c07d18b301002d52 (patch)
tree6ad6027f015fdf68f9c42968227b829000d21974 /.github
parent9601f2699c142bb8273d33763ef4d84e8a7d650f (diff)
Setup GH actions
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/main.yml80
1 files changed, 80 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 0000000..6df8606
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,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