From 906881514d321c11f10dced0061c85e649474430 Mon Sep 17 00:00:00 2001 From: Vera-Firefly <87926662+Vera-Firefly@users.noreply.github.com> Date: Wed, 16 Aug 2023 15:13:20 +0800 Subject: [PATCH] Update To lwjgl3.3.1 --- .github/workflows/main.yml | 111 +++++++++++++++++++++++++++++++++++++ 1 file changed, 111 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 000000000..9f54e71af --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,111 @@ +name: Android CI + +on: + + pull_request: + + branches-ignore: + + - '' + + push: + + branches-ignore: + + - '' + + workflow_dispatch: + +jobs: + + build: + + runs-on: ubuntu-22.04 + + env: + + GPLAY_KEYSTORE_PASSWORD: ${{ secrets.GPLAY_KEYSTORE_PASSWORD }} + + steps: + + - name: Checkout + + uses: actions/checkout@v3 + + - name: Get JRE 8 + + uses: dawidd6/action-download-artifact@v2 + + with: + + workflow: build.yml + + path: app_pojavlauncher/src/main/assets/components/jre + + workflow_conclusion: success + + repo: PojavLauncherTeam/android-openjdk-build-multiarch + + branch: buildjre8 + + name: jre8-pojav + + - name: Get JRE17 + + uses: dawidd6/action-download-artifact@v2 + + with: + + workflow: build.yml + + path: app_pojavlauncher/src/main/assets/components/jre-new + + workflow_conclusion: success + + repo: PojavLauncherTeam/android-openjdk-build-multiarch + + branch: buildjre17 + + name: jre17-pojav + + - uses: gradle/gradle-build-action@v2 + + with: + + gradle-version: 7.6.1 + + - name: Build JRE JAR files + run: | + + # Build JRE JAR files (security manager, etc...) + + gradle :jre_lwjgl3glfw:build --no-daemon + + - name: Set up JDK 17 + + uses: actions/setup-java@v3 + + with: + + distribution: 'temurin' + + java-version: '17' + + - name: Bild Debug.apk + + run: | + + # Build the launcher + + gradle :app_pojavlauncher:assembleDebug + + - name: Upload APK + + uses: actions/upload-artifact@v3 + + with: + + name: app-debug-release + + path: app_pojavlauncher/build/outputs/apk/debug/* +