CI: Andriod: Use sh to buld and create artifacts

This commit is contained in:
SachinVin
2022-04-19 00:33:12 +05:30
parent c86c96467a
commit 564ae346d0
3 changed files with 24 additions and 16 deletions

12
.ci/android/build.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash -ex
export NDK_CCACHE=$(which ccache)
ccache -s
cd src/android
chmod +x ./gradlew
./gradlew bundleRelease
./gradlew assembleRelease
ccache -s

10
.ci/android/upload.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash -ex
. ./.ci/common/pre-upload.sh
REV_NAME="citra-${GITDATE}-${GITREV}"
cp src/android/app/build/outputs/apk/release/app-release.apk \
"artifacts/${REV_NAME}.apk"
cp src/android/app/build/outputs/bundle/release/app-release.aab \
"artifacts/${REV_NAME}.aab"