update-fogle-binary #153
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Android CI | |
| on: | |
| push: | |
| workflow_dispatch: | |
| repository_dispatch: | |
| types: [update-fogle-binary] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-22.04 | |
| env: | |
| UPLOAD_KEYSTORE_PASSWORD: ${{ secrets.UPLOAD_KEYSTORE_PASSWORD }} | |
| CURSEFORGE_API_KEY: ${{ secrets.CURSEFORGE_API_KEY }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Set up JDK 8 | |
| uses: actions/setup-java@v3 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '8' | |
| - name: Get LTW | |
| uses: dawidd6/action-download-artifact@v2 | |
| continue-on-error: true | |
| with: | |
| repo: artdeell/LTW | |
| workflow: android.yml | |
| workflow_conclusion: success | |
| name: output-aar | |
| path: app_pojavlauncher/libs | |
| - name: Get FOGLTLOGLES 64-bit | |
| uses: dawidd6/action-download-artifact@v2 | |
| continue-on-error: true | |
| with: | |
| repo: ThatMG393-2/FOGLTLOGLES | |
| workflow: debug.yml | |
| workflow_conclusion: success | |
| name: "FOGLTOGLES - 64-bit" | |
| path: app_pojavlauncher/src/main/jniLibs/arm64-v8a | |
| - name: Get FOGLTLOGLES 32-bit | |
| uses: dawidd6/action-download-artifact@v2 | |
| continue-on-error: true | |
| with: | |
| repo: ThatMG393-2/FOGLTLOGLES | |
| workflow: debug.yml | |
| workflow_conclusion: success | |
| name: "FOGLTOGLES - 32-bit" | |
| path: app_pojavlauncher/src/main/jniLibs/armeabi-v7a | |
| - uses: gradle/actions/setup-gradle@v4 | |
| with: | |
| gradle-version: "8.11" | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v3 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' | |
| - name: Create out directory | |
| run: mkdir out | |
| - name: Build Publishing .aab | |
| if: github.repository_owner == 'MojoLauncher' && github.ref_name == 'v3_openjdk' | |
| run: | | |
| gradle :app_pojavlauncher:bundleGplay | |
| mv app_pojavlauncher/build/outputs/bundle/gplay/app_pojavlauncher-gplay.aab out/app-gplay.aab | |
| - name: Build Debug .apk | |
| run: | | |
| gradle :app_pojavlauncher:assembleDebug | |
| mv app_pojavlauncher/build/outputs/apk/debug/app_pojavlauncher-debug.apk out/app-debug.apk | |
| - name: Build APK without runtime | |
| run: | | |
| NO_RUNTIME=1 gradle :app_pojavlauncher:assembleDebug | |
| mv app_pojavlauncher/build/outputs/apk/debug/app_pojavlauncher-debug.apk out/app-debug-noruntime.apk | |
| - name: Gen md5sums | |
| run: | | |
| md5sum out/app-debug.apk > out/app-debug.md5 | |
| md5sum out/app-debug-noruntime.apk > out/app-debug-noruntime.md5 | |
| - name: Upload APK | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: app-debug | |
| path: out/app-debug.* | |
| - name: Upload APK (without runtime) | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: app-debug-noruntime | |
| path: out/app-debug-noruntime.* | |
| - name: Upload AAB | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: app-release-aab | |
| path: out/app-gplay.aab | |
| - name: Upload onto the Google Play testing track | |
| continue-on-error: true | |
| if: github.repository_owner == 'MojoLauncher' && github.ref_name == 'v3_openjdk' | |
| uses: r0adkll/upload-google-play@v1.1.2 | |
| with: | |
| serviceAccountJsonPlainText: ${{ secrets.SERVICE_JSON }} | |
| packageName: git.artdeell.mojo | |
| releaseFiles: out/app-gplay.aab | |
| track: internal | |
| inAppUpdatePriority: 5 |