diff --git a/.github/actions/build/action.yml b/.github/actions/build/action.yml index 5aa2a0a..1524ee4 100644 --- a/.github/actions/build/action.yml +++ b/.github/actions/build/action.yml @@ -11,7 +11,7 @@ inputs: required : false default : '' emu: - description : 'what system the build is for, Switch or Emulators' + description : 'what system the build is for: Switch, Ryujinx or yuzu' required : false default : 'Switch' @@ -56,11 +56,22 @@ runs: docker run --rm \ -u `id -u`:`id -g` \ -v "/$PWD/":/app/ \ - -e ISEMU=${{ (inputs.emu == 'Emulators' && '1') || '0' }} \ + -e ISEMU=${{ (inputs.emu != 'Switch' && '1') || '0' }} \ ${{ (steps.env.outputs.version != '' && format('-e BUILDVER={0}', steps.env.outputs.version)) || '' }} \ smoo-build-env \ ; cp -r ./romfs/ ./starlight_patch_100/atmosphere/contents/0100000000010000/. + - + name : Yuzu + shell : bash + if : ${{ inputs.emu == 'yuzu' }} + run: | + cd ./starlight_patch_100/ + mkdir ./SMOO/ + mv ./atmosphere/contents/0100000000010000/exefs ./SMOO/exefs + mv ./atmosphere/contents/0100000000010000/romfs ./SMOO/romfs + mv ./atmosphere/exefs_patches/StarlightBase/3CA12DFAAF9C82DA064D1698DF79CDA1.ips ./SMOO/romfs/ + rm -rf ./atmosphere/ - name : Upload artifacts uses : actions/upload-artifact@v3 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 25259ca..76179ae 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,7 +22,7 @@ jobs: build: strategy: matrix: - emu : [ Switch, Emulators ] + emu : [ Switch, Ryujinx, yuzu ] runs-on: ubuntu-latest steps: - diff --git a/.github/workflows/dev-release.yml b/.github/workflows/dev-release.yml index 92bb0aa..000ffea 100644 --- a/.github/workflows/dev-release.yml +++ b/.github/workflows/dev-release.yml @@ -21,11 +21,12 @@ jobs: build: strategy: matrix: - emu : [ Switch, Emulators ] + emu : [ Switch, Ryujinx, yuzu ] runs-on: ubuntu-latest outputs: filename1: ${{ steps.set-output.outputs.filename-Switch }} - filename2: ${{ steps.set-output.outputs.filename-Emulators }} + filename2: ${{ steps.set-output.outputs.filename-Ryujinx }} + filename3: ${{ steps.set-output.outputs.filename-yuzu }} steps: - name : Checkout @@ -72,12 +73,19 @@ jobs: upload_url : ${{ steps.release.outputs.upload_url }} GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} - - name : Attach build artifacts to release (Emulators) + name : Attach build artifacts to release (Ryujinx) uses : ./.github/actions/attach with: filename : ${{ needs.build.outputs.filename2 }} upload_url : ${{ steps.release.outputs.upload_url }} GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} + - + name : Attach build artifacts to release (yuzu) + uses : ./.github/actions/attach + with: + filename : ${{ needs.build.outputs.filename3 }} + upload_url : ${{ steps.release.outputs.upload_url }} + GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} move: needs: attach diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1d72252..859a4d7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,11 +14,12 @@ jobs: build: strategy: matrix: - emu : [ Switch, Emulators ] + emu : [ Switch, Ryujinx, yuzu ] runs-on: ubuntu-latest outputs: filename1: ${{ steps.set-output.outputs.filename-Switch }} - filename2: ${{ steps.set-output.outputs.filename-Emulators }} + filename2: ${{ steps.set-output.outputs.filename-Ryujinx }} + filename3: ${{ steps.set-output.outputs.filename-yuzu }} steps: - name : Checkout @@ -59,9 +60,16 @@ jobs: upload_url : ${{ steps.release.outputs.upload_url }} GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} - - name : Attach build artifacts to release (Emulators) + name : Attach build artifacts to release (Ryujinx) uses : ./.github/actions/attach with: filename : ${{ needs.build.outputs.filename2 }} upload_url : ${{ steps.release.outputs.upload_url }} GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} + - + name : Attach build artifacts to release (yuzu) + uses : ./.github/actions/attach + with: + filename : ${{ needs.build.outputs.filename3 }} + upload_url : ${{ steps.release.outputs.upload_url }} + GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}