Build a basic NSP forwarder during CI tests

This commit is contained in:
rlaphoenix
2022-11-13 06:43:02 +00:00
parent 873e0e8faa
commit 981c8597a9
4 changed files with 39 additions and 1 deletions
+35 -1
View File
@@ -9,7 +9,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest
runs-on: windows-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
@@ -37,3 +37,37 @@ jobs:
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Build project
run: poetry build
- name: Install ImageMagick
run: choco install imagemagick
- name: Cache external Homebrew Tools
id: cache-hb-tools
uses: actions/cache@v3
with:
path: |
nstool.exe
hacbrewpack.exe
hptnacp.exe
key: hb-tools
- name: Install external Homebrew Tools
if: steps.cache-hb-tools.outputs.cache-hit != 'true'
run: |
aria2c https://github.com/jakcron/nstool/releases/download/v1.6.5/nstool-v1.6.5-win_x64.zip
7z x nstool-v1.6.5-win_x64.zip nstool.exe
aria2c https://github.com/The-4n/hacBrewPack/releases/download/v3.05/hacbrewpack-v3.05_win64.zip
7z x hacbrewpack-v3.05_win64.zip hacbrewpack.exe
aria2c https://github.com/The-4n/hacPack/releases/download/v1.36-r2/hacpack-v1.36_r2_win64.zip
7z x hacpack-v1.36_r2_win64.zip Tools/hacPackTools-NACP/hptnacp.exe
Move-Item -Path .\Tools\hacPackTools-NACP\hptnacp.exe -Destination .
- name: Cache prod.keys
id: cache-prod-keys
uses: actions/cache@v3
with:
path: prod.keys
key: prod-keys
- name: Save prod.keys safely
if: steps.cache-prod-keys.outputs.cache-hit != 'true'
env:
PROD_KEYS: ${{ secrets.PROD_KEYS }}
run: $env:PROD_KEYS | Out-File prod.keys
- name: Build basic NSP forwarder
run: poetry run nton build "sdl-hello.nro" --name "Hello World" --publisher "vgmoose" --version "1.1" --sdmc "/switch/sdl-hello.nro"
+1
View File
@@ -7,6 +7,7 @@ control/
*.NRO
*.keys
keys.txt
!sdl-hello.nro
# Byte-compiled / optimized / DLL files
__pycache__/
+3
View File
@@ -163,11 +163,14 @@ Firmware 9.0.0 and 12.0.0 are times the firmware has broken different forwarder
- [Martin Pham (mpham)][mpham] for the [original forwarder ROM][ROM] supporting v12.0.0+, and original batch script.
- [meliodas2255] for [their forwarder ROM][ROM2] also supporting v12.0.0+ compiled with the latest hbl-loader as of May
2021, with both direct RetroArch Forwarding and general forwarding support.
- [vgmoose] for the [sdl-hello-world] NRO that is used in CI/CD testing.
[mpham]: <https://gbatemp.net/members/mpham.537130>
[meliodas2255]: <https://gbatemp.net/members/meliodas2255.410353>
[vgmoose]: <https://github.com/vgmoose>
[ROM]: <https://gitlab.com/martinpham/NSP-Forwarder>
[ROM2]: <https://gbatemp.net/threads/nsp-forwarder-tool-for-12.587936/post-9468469>
[sdl-hello-world]: <https://github.com/vgmoose/sdl-hello-world>
## License
BIN
View File
Binary file not shown.