-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from lifehackerhansol/github-actions
Makefile, build instructions, and GitHub Actions
- Loading branch information
Showing
40 changed files
with
92 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,45 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: devkitpro/devkitarm | ||
|
||
steps: | ||
- name: Checkout finalize_helper | ||
uses: actions/checkout@v4 | ||
|
||
- name: Checkout GodMode9 | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: d0k3/GodMode9 | ||
path: GodMode9 | ||
ref: v2.1.1 | ||
|
||
- name: Install packages | ||
run: | | ||
apt-get update | ||
apt-get -y install dirmngr python3 python3-pip p7zip-full libarchive13 | ||
python3 -m pip install setuptools cryptography git+https://github.com/TuxSH/firmtool.git | ||
- name: Install 3dstool | ||
run: | | ||
wget https://github.com/dnasdw/3dstool/releases/download/v1.2.6/3dstool_linux_x86_64.tar.gz | ||
tar xvzf 3dstool_linux_x86_64.tar.gz | ||
sudo cp 3dstool ext_key.txt ignore_3dstool.txt /usr/local/bin | ||
sudo chmod a+x /usr/local/bin/3dstool | ||
- name: Build Project | ||
run: | | ||
make | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: finalize_helper | ||
path: builds | ||
if-no-files-found: error |
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,3 @@ | ||
[submodule "GodMode9"] | ||
path = GodMode9 | ||
url = https://github.com/d0k3/GodMode9 |
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,20 @@ | ||
.PHONY := builds finalize.romfs finalize_helper.firm clean | ||
|
||
all: builds/finalize_helper.firm | ||
|
||
builds: | ||
@[ -d builds ] || mkdir -p builds | ||
|
||
builds/finalize.romfs: builds | ||
@3dstool -c -t romfs --romfs-dir romfs --file $@ | ||
|
||
builds/finalize_helper.firm: builds/finalize.romfs | ||
@cp finalize_helper.gm9 GodMode9/data/autorun.gm9 | ||
@sed -i s/FINALIZE_SHA256SUM/$(shell sha256sum $< | awk '{print $$1}')/g GodMode9/data/autorun.gm9 | ||
@$(MAKE) -C GodMode9 SCRIPT_RUNNER=1 | ||
@cp GodMode9/output/GodMode9.firm $@ | ||
|
||
clean: | ||
@rm -rf builds | ||
@$(MAKE) -C GodMode9 clean | ||
@rm GodMode9/data/autorun.gm9 |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes