summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar t8952023-12-26 19:22:08 -0500
committerGravatar t8952023-12-28 20:53:16 -0500
commitd677052e8c88f5a3605f5f82c7c773dcf4888068 (patch)
tree56a4483ed8c71a6e20d5097d674b62f63bcef11f
parentMerge pull request #12455 from liamwhite/end-wait (diff)
downloadyuzu-d677052e8c88f5a3605f5f82c7c773dcf4888068.tar.gz
yuzu-d677052e8c88f5a3605f5f82c7c773dcf4888068.tar.xz
yuzu-d677052e8c88f5a3605f5f82c7c773dcf4888068.zip
actions: android: Build relWithDebInfo on main repo
Diffstat (limited to '')
-rwxr-xr-x.ci/scripts/android/build.sh9
-rwxr-xr-x.ci/scripts/android/upload.sh13
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 @@
6export NDK_CCACHE="$(which ccache)" 6export NDK_CCACHE="$(which ccache)"
7ccache -s 7ccache -s
8 8
9BUILD_FLAVOR=mainline 9BUILD_FLAVOR="mainline"
10
11BUILD_TYPE="release"
12if [ "${GITHUB_REPOSITORY}" == "yuzu-emu/yuzu" ]; then
13 BUILD_TYPE="relWithDebInfo"
14fi
10 15
11if [ ! -z "${ANDROID_KEYSTORE_B64}" ]; then 16if [ ! -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
16cd src/android 21cd src/android
17chmod +x ./gradlew 22chmod +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
20ccache -s 25ccache -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
8REV_NAME="yuzu-${GITDATE}-${GITREV}" 8REV_NAME="yuzu-${GITDATE}-${GITREV}"
9 9
10BUILD_FLAVOR=mainline 10BUILD_FLAVOR="mainline"
11 11
12cp src/android/app/build/outputs/apk/"${BUILD_FLAVOR}/release/app-${BUILD_FLAVOR}-release.apk" \ 12BUILD_TYPE_LOWER="release"
13BUILD_TYPE_UPPER="Release"
14if [ "${GITHUB_REPOSITORY}" == "yuzu-emu/yuzu" ]; then
15 BUILD_TYPE_LOWER="relWithDebInfo"
16 BUILD_TYPE_UPPER="RelWithDebInfo"
17fi
18
19cp 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"
14cp src/android/app/build/outputs/bundle/"${BUILD_FLAVOR}Release"/"app-${BUILD_FLAVOR}-release.aab" \ 21cp 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"