Cache gl4es

This commit is contained in:
Google61 2021-04-20 14:45:32 +03:00 committed by GitHub
parent 40e2275431
commit 8a4d0ce75c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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