mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-19 01:27:18 -04:00
Cache gl4es
This commit is contained in:
parent
40e2275431
commit
8a4d0ce75c
20
.github/workflows/android.yml
vendored
20
.github/workflows/android.yml
vendored
@ -21,19 +21,35 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
java-version: 1.8
|
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
|
- name: Get gl4es
|
||||||
|
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 latest GL4ES
|
- name: Build gl4es
|
||||||
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
cd gl4es
|
cd gl4es
|
||||||
mv ../Android_gl4es.mk Android.mk
|
mv ../Android_gl4es.mk Android.mk
|
||||||
$ANDROID_NDK_HOME/ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./Android.mk NDK_DEBUG=1
|
$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
|
- name: Get JRE
|
||||||
uses: dawidd6/action-download-artifact@v2
|
uses: dawidd6/action-download-artifact@v2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user