mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-17 08:35:37 -04:00
Update android.yml
This commit is contained in:
parent
9dd7420de6
commit
4623040a71
20
.github/workflows/android.yml
vendored
20
.github/workflows/android.yml
vendored
@ -25,13 +25,11 @@ jobs:
|
|||||||
java-version: 1.8
|
java-version: 1.8
|
||||||
|
|
||||||
- name: Get gl4es latest commit hash
|
- name: Get gl4es latest commit hash
|
||||||
if: github.ref == 'refs/heads/v3_openjdk'
|
|
||||||
id: gl4es-sha
|
id: gl4es-sha
|
||||||
run: echo "::set-output name=sha::$(echo $(git ls-remote https://github.com/PojavLauncherTeam/gl4es-114-extra refs/heads/master | grep -io '^\S*'))"
|
run: echo "::set-output name=sha::$(echo $(git ls-remote https://github.com/PojavLauncherTeam/gl4es-114-extra refs/heads/master | grep -io '^\S*'))"
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Cache gl4es
|
- name: Cache gl4es
|
||||||
if: github.ref == 'refs/heads/v3_openjdk'
|
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
id: gl4es-cache
|
id: gl4es-cache
|
||||||
with:
|
with:
|
||||||
@ -39,14 +37,14 @@ jobs:
|
|||||||
key: gl4es-android-shared-nodbg-test1-2-${{ steps.gl4es-sha.outputs.sha }}
|
key: gl4es-android-shared-nodbg-test1-2-${{ steps.gl4es-sha.outputs.sha }}
|
||||||
|
|
||||||
- name: Get gl4es
|
- name: Get gl4es
|
||||||
if: github.ref == 'refs/heads/v3_openjdk' && steps.gl4es-cache.outputs.cache-hit != 'true'
|
if: steps.gl4es-cache.outputs.cache-hit != 'true'
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
repository: 'ptitSeb/gl4es'
|
repository: 'ptitSeb/gl4es'
|
||||||
path: 'gl4es'
|
path: 'gl4es'
|
||||||
|
|
||||||
- name: Build gl4es
|
- name: Build gl4es
|
||||||
if: github.ref == 'refs/heads/v3_openjdk' && steps.gl4es-cache.outputs.cache-hit != 'true'
|
if: steps.gl4es-cache.outputs.cache-hit != 'true'
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
cd gl4es
|
cd gl4es
|
||||||
@ -57,13 +55,13 @@ jobs:
|
|||||||
git checkout master
|
git checkout master
|
||||||
git merge --allow-unrelated-histories upstream/master || echo "Merge exit code $?"
|
git merge --allow-unrelated-histories upstream/master || echo "Merge exit code $?"
|
||||||
$ANDROID_NDK_HOME/ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./Android.mk
|
$ANDROID_NDK_HOME/ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./Android.mk
|
||||||
|
|
||||||
- name: Install gl4es
|
|
||||||
if: github.ref == 'refs/heads/v3_openjdk' && steps.gl4es-cache.outputs.cache-hit != 'true'
|
|
||||||
continue-on-error: true
|
|
||||||
run: |
|
|
||||||
cp -R gl4es/libs/* app_pojavlauncher/src/main/jniLibs/
|
cp -R gl4es/libs/* app_pojavlauncher/src/main/jniLibs/
|
||||||
mv gl4es ..
|
mv gl4es ..
|
||||||
|
|
||||||
|
- name: Push gl4es
|
||||||
|
if: github.event != "pull_request" && steps.gl4es-cache.outputs.cache-hit != 'true'
|
||||||
|
continue-on-error: true
|
||||||
|
run: |
|
||||||
git add .
|
git add .
|
||||||
git commit -am "CI: Update gl4es"
|
git commit -am "CI: Update gl4es"
|
||||||
git push
|
git push
|
||||||
@ -91,7 +89,7 @@ jobs:
|
|||||||
./gradlew :jre_lwjgl3glfw:build
|
./gradlew :jre_lwjgl3glfw:build
|
||||||
|
|
||||||
- name: Build Google Play .aab
|
- name: Build Google Play .aab
|
||||||
if: ${{ github.event_name == "push" && github.ref_name == "v3_openjdk" }}
|
if: github.repository_owner == "PojavLauncherTeam" && github.ref_name == "v3_openjdk"
|
||||||
run: |
|
run: |
|
||||||
./gradlew :app_pojavlauncher:bundleGplay
|
./gradlew :app_pojavlauncher:bundleGplay
|
||||||
mv app_pojavlauncher/build/outputs/bundle/gplay/app_pojavlauncher-gplay.aab out/app-gplay.aab
|
mv app_pojavlauncher/build/outputs/bundle/gplay/app_pojavlauncher-gplay.aab out/app-gplay.aab
|
||||||
@ -115,7 +113,7 @@ jobs:
|
|||||||
path: out/app-debug.apk
|
path: out/app-debug.apk
|
||||||
|
|
||||||
- name: Upload onto the Google Play testing track
|
- name: Upload onto the Google Play testing track
|
||||||
if: github.ref == 'refs/heads/v3_openjdk' && github.event_name == "push"
|
if: github.repository_owner == "PojavLauncherTeam" && github.ref_name == "v3_openjdk"
|
||||||
uses: r0adkll/upload-google-play@v1.0.15
|
uses: r0adkll/upload-google-play@v1.0.15
|
||||||
with:
|
with:
|
||||||
serviceAccountJsonPlainText: ${{ secrets.GPLAY_SERVICE_JSON }}
|
serviceAccountJsonPlainText: ${{ secrets.GPLAY_SERVICE_JSON }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user