mirror of
https://github.com/Threnklyn/nton.git
synced 2026-05-18 21:03:28 +02:00
Build a basic NSP forwarder during CI tests
This commit is contained in:
@@ -9,7 +9,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: windows-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ['3.7', '3.8', '3.9', '3.10']
|
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
|
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
||||||
- name: Build project
|
- name: Build project
|
||||||
run: poetry build
|
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"
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ control/
|
|||||||
*.NRO
|
*.NRO
|
||||||
*.keys
|
*.keys
|
||||||
keys.txt
|
keys.txt
|
||||||
|
!sdl-hello.nro
|
||||||
|
|
||||||
# Byte-compiled / optimized / DLL files
|
# Byte-compiled / optimized / DLL files
|
||||||
__pycache__/
|
__pycache__/
|
||||||
|
|||||||
@@ -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.
|
- [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
|
- [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.
|
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>
|
[mpham]: <https://gbatemp.net/members/mpham.537130>
|
||||||
[meliodas2255]: <https://gbatemp.net/members/meliodas2255.410353>
|
[meliodas2255]: <https://gbatemp.net/members/meliodas2255.410353>
|
||||||
|
[vgmoose]: <https://github.com/vgmoose>
|
||||||
[ROM]: <https://gitlab.com/martinpham/NSP-Forwarder>
|
[ROM]: <https://gitlab.com/martinpham/NSP-Forwarder>
|
||||||
[ROM2]: <https://gbatemp.net/threads/nsp-forwarder-tool-for-12.587936/post-9468469>
|
[ROM2]: <https://gbatemp.net/threads/nsp-forwarder-tool-for-12.587936/post-9468469>
|
||||||
|
[sdl-hello-world]: <https://github.com/vgmoose/sdl-hello-world>
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user