mirror of
https://github.com/HackerN64/HackerOoT.git
synced 2026-01-21 10:37:37 -08:00
* makefile changes * minor 'if's cleanup * changed version to ntsc-1.2 and removed hackeroot-mq * fixed some build issues * format files * fix boot issues * remove mod_assets system * add f3dex2 offsets for ntsc 1.0, 1.1 and 1.2 * update F3DEX3 * format * make adjustements * post-merge fixes * remove settings.json from tracking * temp delete c_cpp_properties.json * hopefully fix .vscode oddities * fixed sym_info * fix build issues * fixed profiler issues Co-authored by: Thar0 <17233964+Thar0@users.noreply.github.com> * format + don't format example scene sources * proper f3dex3 patches folders --------- Co-authored-by: Yanis42 <35189056+Yanis42@users.noreply.github.com>
57 lines
1.5 KiB
YAML
57 lines
1.5 KiB
YAML
name: Build
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
container: ghcr.io/hackern64/hackerbuild:main
|
|
runs-on: ubuntu-22.04
|
|
strategy:
|
|
matrix:
|
|
include:
|
|
- name: "Debug, No F3DEX3"
|
|
args: DEBUG_FEATURES=1 CPP_DEFINES=-DENABLE_F3DEX3=0
|
|
- name: "Debug, F3DEX3"
|
|
args: DEBUG_FEATURES=1 CPP_DEFINES=-DENABLE_F3DEX3=1
|
|
- name: "Release, No F3DEX3"
|
|
args: DEBUG_FEATURES=0 CPP_DEFINES=-DENABLE_F3DEX3=0
|
|
- name: "Release, F3DEX3"
|
|
args: DEBUG_FEATURES=0 CPP_DEFINES=-DENABLE_F3DEX3=1
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
|
|
name: ${{ matrix.name }}
|
|
|
|
steps:
|
|
# Checkout the repository (shallow clone)
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
submodules: recursive
|
|
|
|
# Set Git config
|
|
- name: Git config
|
|
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
|
|
|
# Copy the original files to the workspace
|
|
- name: Prepare
|
|
run: cp -R /HackerOoT/baseroms .
|
|
|
|
# Install the required pip packages
|
|
- name: Setup Python
|
|
run: |
|
|
python3 -m pip install --user colorama ansiwrap attrs watchdog python-Levenshtein "mapfile-parser>=1.2.1,<2.0.0" "rabbitizer>=1.0.0,<2.0.0"
|
|
python3 -m pip install --upgrade attrs pycparser
|
|
|
|
# Setup the project
|
|
- name: Setup
|
|
run: make setup -j$(nproc)
|
|
|
|
# Build the project
|
|
- name: Build
|
|
run: ${{ matrix.args }} make -j$(nproc)
|