diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2947453..869fe69 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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" diff --git a/.gitignore b/.gitignore index 62c9de4..b35e931 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ control/ *.NRO *.keys keys.txt +!sdl-hello.nro # Byte-compiled / optimized / DLL files __pycache__/ diff --git a/README.md b/README.md index b85e5a3..a88b8f9 100644 --- a/README.md +++ b/README.md @@ -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]: [meliodas2255]: + [vgmoose]: [ROM]: [ROM2]: + [sdl-hello-world]: ## License diff --git a/sdl-hello.nro b/sdl-hello.nro new file mode 100644 index 0000000..dea568c Binary files /dev/null and b/sdl-hello.nro differ