diff options
Diffstat (limited to '')
| -rwxr-xr-x | .ci/scripts/android/build.sh | 9 | ||||
| -rwxr-xr-x | .ci/scripts/android/upload.sh | 13 |
2 files changed, 17 insertions, 5 deletions
diff --git a/.ci/scripts/android/build.sh b/.ci/scripts/android/build.sh index d135af029..98593017f 100755 --- a/.ci/scripts/android/build.sh +++ b/.ci/scripts/android/build.sh | |||
| @@ -6,7 +6,12 @@ | |||
| 6 | export NDK_CCACHE="$(which ccache)" | 6 | export NDK_CCACHE="$(which ccache)" |
| 7 | ccache -s | 7 | ccache -s |
| 8 | 8 | ||
| 9 | BUILD_FLAVOR=mainline | 9 | BUILD_FLAVOR="mainline" |
| 10 | |||
| 11 | BUILD_TYPE="release" | ||
| 12 | if [ "${GITHUB_REPOSITORY}" == "yuzu-emu/yuzu" ]; then | ||
| 13 | BUILD_TYPE="relWithDebInfo" | ||
| 14 | fi | ||
| 10 | 15 | ||
| 11 | if [ ! -z "${ANDROID_KEYSTORE_B64}" ]; then | 16 | if [ ! -z "${ANDROID_KEYSTORE_B64}" ]; then |
| 12 | export ANDROID_KEYSTORE_FILE="${GITHUB_WORKSPACE}/ks.jks" | 17 | export ANDROID_KEYSTORE_FILE="${GITHUB_WORKSPACE}/ks.jks" |
| @@ -15,7 +20,7 @@ fi | |||
| 15 | 20 | ||
| 16 | cd src/android | 21 | cd src/android |
| 17 | chmod +x ./gradlew | 22 | chmod +x ./gradlew |
| 18 | ./gradlew "assemble${BUILD_FLAVOR}Release" "bundle${BUILD_FLAVOR}Release" | 23 | ./gradlew "assemble${BUILD_FLAVOR}${BUILD_TYPE}" "bundle${BUILD_FLAVOR}${BUILD_TYPE}" |
| 19 | 24 | ||
| 20 | ccache -s | 25 | ccache -s |
| 21 | 26 | ||
diff --git a/.ci/scripts/android/upload.sh b/.ci/scripts/android/upload.sh index 5f8ca73c0..26b1a7efa 100755 --- a/.ci/scripts/android/upload.sh +++ b/.ci/scripts/android/upload.sh | |||
| @@ -7,9 +7,16 @@ | |||
| 7 | 7 | ||
| 8 | REV_NAME="yuzu-${GITDATE}-${GITREV}" | 8 | REV_NAME="yuzu-${GITDATE}-${GITREV}" |
| 9 | 9 | ||
| 10 | BUILD_FLAVOR=mainline | 10 | BUILD_FLAVOR="mainline" |
| 11 | 11 | ||
| 12 | cp src/android/app/build/outputs/apk/"${BUILD_FLAVOR}/release/app-${BUILD_FLAVOR}-release.apk" \ | 12 | BUILD_TYPE_LOWER="release" |
| 13 | BUILD_TYPE_UPPER="Release" | ||
| 14 | if [ "${GITHUB_REPOSITORY}" == "yuzu-emu/yuzu" ]; then | ||
| 15 | BUILD_TYPE_LOWER="relWithDebInfo" | ||
| 16 | BUILD_TYPE_UPPER="RelWithDebInfo" | ||
| 17 | fi | ||
| 18 | |||
| 19 | cp src/android/app/build/outputs/apk/"${BUILD_FLAVOR}/${BUILD_TYPE_LOWER}/app-${BUILD_FLAVOR}-${BUILD_TYPE_LOWER}.apk" \ | ||
| 13 | "artifacts/${REV_NAME}.apk" | 20 | "artifacts/${REV_NAME}.apk" |
| 14 | cp src/android/app/build/outputs/bundle/"${BUILD_FLAVOR}Release"/"app-${BUILD_FLAVOR}-release.aab" \ | 21 | cp src/android/app/build/outputs/bundle/"${BUILD_FLAVOR}${BUILD_TYPE_UPPER}"/"app-${BUILD_FLAVOR}-${BUILD_TYPE_LOWER}.aab" \ |
| 15 | "artifacts/${REV_NAME}.aab" | 22 | "artifacts/${REV_NAME}.aab" |