From 3fe07e4652f0243e1085bb81636ced42a982adcd Mon Sep 17 00:00:00 2001 From: izzy2lost Date: Thu, 27 Nov 2025 22:24:20 -0500 Subject: [PATCH] add signed debug and release for testing purposes --- .github/workflows/build.yml | 35 +++++++++++++++++++++++++++++++++++ .gitignore | 1 + 2 files changed, 36 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4de7591..67da3cc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,6 +2,15 @@ name: Build PSX2 APK on: workflow_dispatch: + inputs: + build_type: + description: 'Build type' + required: true + default: 'debug' + type: choice + options: + - debug + - release jobs: build: @@ -21,11 +30,37 @@ jobs: - name: Make Gradle executable run: chmod +x ./gradlew + - name: Decode Keystore + if: github.event.inputs.build_type == 'release' + run: | + echo "${{ secrets.KEYSTORE_BASE64 }}" | base64 -d > ${{ github.workspace }}/keystore.jks + + - name: Create keystore.properties + if: github.event.inputs.build_type == 'release' + run: | + echo "storeFile=${{ github.workspace }}/keystore.jks" > keystore.properties + echo "storePassword=${{ secrets.KEYSTORE_PASSWORD }}" >> keystore.properties + echo "keyAlias=${{ secrets.KEY_ALIAS }}" >> keystore.properties + echo "keyPassword=${{ secrets.KEY_PASSWORD }}" >> keystore.properties + - name: Build debug APK + if: github.event.inputs.build_type == 'debug' run: ./gradlew assembleDebug + - name: Build release APK + if: github.event.inputs.build_type == 'release' + run: ./gradlew assembleRelease + - name: Upload debug APK artifact + if: github.event.inputs.build_type == 'debug' uses: actions/upload-artifact@v4 with: name: pcsx2-android-debug path: ${{ env.MODULE }}/build/outputs/apk/debug/*.apk + + - name: Upload release APK artifact + if: github.event.inputs.build_type == 'release' + uses: actions/upload-artifact@v4 + with: + name: pcsx2-android-release + path: ${{ env.MODULE }}/build/outputs/apk/release/*.apk diff --git a/.gitignore b/.gitignore index 0d02734..139c93e 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,4 @@ MEMCARD_ARCHITECTURE.md # But do NOT ignore README.md !README.md +build-apk.bat