-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create workflow for CI builds (#153)
* create build workflow (no artifacts) * fix url * fix lowercase issue * fix build oddities * update matrix
- Loading branch information
Showing
3 changed files
with
60 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
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: RELEASE=0 CPP_DEFINES=-DENABLE_F3DEX3=0 | ||
- name: "Debug, F3DEX3" | ||
args: RELEASE=0 CPP_DEFINES=-DENABLE_F3DEX3=1 | ||
- name: "Release, No F3DEX3" | ||
args: RELEASE=1 CPP_DEFINES=-DENABLE_F3DEX3=0 | ||
- name: "Release, F3DEX3" | ||
args: RELEASE=1 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters