diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index ea02b1785..4044e8171 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -21,19 +21,35 @@ jobs: with: java-version: 1.8 + - name: Get gl4es latest commit hash + id: gl4es-sha + run: echo "::set-output name=sha::$(git ls-remote https://github.com/ptitSeb/gl4es refs/heads/master | grep -io '^\S*')" + shell: bash + + - name: Cache gl4es + uses: actions/cache@v2 + id: gl4es-cache + with: + path: gl4es/libs + key: gl4es-android-shared-${{ steps.gl4es-sha.outputs.sha }} + - name: Get gl4es + if: steps.gl4es-cache.outputs.cache-hit != 'true' uses: actions/checkout@v2 with: repository: 'ptitSeb/gl4es' path: 'gl4es' - - name: Build latest GL4ES + - name: Build gl4es + if: steps.cache.outputs.cache-hit != 'true' continue-on-error: true run: | cd gl4es mv ../Android_gl4es.mk Android.mk $ANDROID_NDK_HOME/ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./Android.mk NDK_DEBUG=1 - cp -R libs/* ../app_pojavlauncher/src/main/jniLibs/ + + - name: Install gl4es + run: cp -R gl4es/libs/* app_pojavlauncher/src/main/jniLibs/ - name: Get JRE uses: dawidd6/action-download-artifact@v2