|
| 1 | +name: Package AOS for release |
| 2 | + |
| 3 | +on: |
| 4 | + release: |
| 5 | + types: [published] |
| 6 | + |
| 7 | +jobs: |
| 8 | + build: |
| 9 | + runs-on: ubuntu-latest |
| 10 | + container: devkitpro/devkitarm |
| 11 | + name: Build with Docker using devkitARM |
| 12 | + steps: |
| 13 | + - name: Checkout |
| 14 | + uses: actions/checkout@v3 |
| 15 | + - name: Build initial zips |
| 16 | + run: | |
| 17 | + chmod +x build.sh |
| 18 | + ./build.sh |
| 19 | +
|
| 20 | + - name: Download other applications |
| 21 | + run: | |
| 22 | + mkdir -p extras_external |
| 23 | + cd extras_external |
| 24 | + wget https://github.com/wavemotion-dave/A8DS/releases/latest/download/A8DS.nds |
| 25 | + wget https://github.com/wavemotion-dave/StellaDS/releases/latest/download/StellaDS.nds |
| 26 | + wget https://github.com/wavemotion-dave/A5200DS/releases/latest/download/A5200DS.nds |
| 27 | + wget https://github.com/wavemotion-dave/A7800DS/releases/latest/download/A7800DS.nds |
| 28 | + wget https://github.com/wavemotion-dave/ColecoDS/releases/latest/download/ColecoDS.nds |
| 29 | + wget https://github.com/FluBBaOfWard/S8DS/releases/latest/download/S8DS.zip |
| 30 | + wget https://bitbucket.org/Coto88/snemulds/raw/e46406cc3c9fac986e6fb82cd859954ae15bde6c/release/arm7dldi-ntr/SNEmulDS.nds |
| 31 | + wget https://bitbucket.org/Coto88/snemulds/raw/e46406cc3c9fac986e6fb82cd859954ae15bde6c/release/snemul.cfg |
| 32 | + wget -O GBARunner2.nds https://github.com/unresolvedsymbol/GBARunner2-DSL-Enhanced/releases/download/v20201019-DSL_97447fe/GBARunner2_arm9dldi_ds.nds |
| 33 | + wget https://github.com/Stewmath/GameYob/releases/download/v0.5.2/gameyob.zip |
| 34 | + unzip gameyob.zip; rm gameyob_dsi.nds |
| 35 | + unzip S8DS.zip |
| 36 | + # for whatever reason this needs to be DLDI patched, doesn't want to work from AOS directly |
| 37 | + dlditool ../kernel/__rpg/game.dldi gameyob.nds |
| 38 | + cp -r *.nds ../out/acep/__rpg/APP/ |
| 39 | + cp -r *.nds ../out/r4it/__rpg/APP/ |
| 40 | + cp -r *.nds ../out/r4xx/__rpg/APP/ |
| 41 | + cp snemul.cfg ../out/acep/snemul.cfg |
| 42 | + cp snemul.cfg ../out/r4it/snemul.cfg |
| 43 | + cp snemul.cfg ../out/r4xx/snemul.cfg |
| 44 | +
|
| 45 | + - name: Package individual kernel files |
| 46 | + run: | |
| 47 | + cd out/acep |
| 48 | + zip -r ../AOS_Ace3DSPlus.zip * |
| 49 | + cd ../r4it |
| 50 | + zip -r ../AOS_Gateway.zip * |
| 51 | + cd ../r4xx |
| 52 | + zip -r ../AOS_R4iLS.zip * |
| 53 | +
|
| 54 | + - name: Prepare for publishing |
| 55 | + run: | |
| 56 | + mkdir -p ~/artifacts |
| 57 | + cp out/AOS_*.zip ~/artifacts |
| 58 | +
|
| 59 | + - name: Publish build to GH Actions |
| 60 | + uses: actions/upload-artifact@v3 |
| 61 | + with: |
| 62 | + path: ~/artifacts/* |
| 63 | + name: build |
| 64 | + - name: Release |
| 65 | + uses: softprops/action-gh-release@v1 |
| 66 | + if: startsWith(github.ref, 'refs/tags/') |
| 67 | + with: |
| 68 | + files: | |
| 69 | + out/AOS_Ace3DSPlus.zip |
| 70 | + out/AOS_Gateway.zip |
| 71 | + out/AOS_R4iLS.zip |
| 72 | + README.md |
0 commit comments