2022-04-18 20:03:12 +01:00
|
|
|
#!/bin/bash -ex
|
|
|
|
|
|
|
|
export NDK_CCACHE=$(which ccache)
|
2022-08-13 16:52:15 +01:00
|
|
|
[ "$GITHUB_REPOSITORY" = "citra-emu/citra-canary" ] &&
|
|
|
|
BUILD_FLAVOR=canary ||
|
|
|
|
BUILD_FLAVOR=nightly
|
2022-04-18 20:03:12 +01:00
|
|
|
|
2023-06-27 01:42:00 +01:00
|
|
|
if [ ! -z "${ANDROID_KEYSTORE_B64}" ]; then
|
|
|
|
export ANDROID_KEYSTORE_FILE="${GITHUB_WORKSPACE}/ks.jks"
|
|
|
|
base64 --decode <<< "${ANDROID_KEYSTORE_B64}" > "${ANDROID_KEYSTORE_FILE}"
|
|
|
|
fi
|
2022-04-18 20:03:12 +01:00
|
|
|
|
|
|
|
cd src/android
|
|
|
|
chmod +x ./gradlew
|
2022-08-13 16:52:15 +01:00
|
|
|
./gradlew assemble${BUILD_FLAVOR}Release
|
|
|
|
./gradlew bundle${BUILD_FLAVOR}Release
|
2022-04-18 20:03:12 +01:00
|
|
|
|
2023-10-09 07:56:01 +01:00
|
|
|
ccache -s -v
|
2023-06-27 01:42:00 +01:00
|
|
|
|
|
|
|
if [ ! -z "${ANDROID_KEYSTORE_B64}" ]; then
|
|
|
|
rm "${ANDROID_KEYSTORE_FILE}"
|
|
|
|
fi
|