Skip to content

Commit 1dba193

Browse files
committed
build: disable configuration-cache for release builds
unsure where the specific mal-interaction is as the error message is not instructive, but this seems to be slightly more successful when probing the current CI release failure and reproducing partially locally
1 parent f4abe59 commit 1dba193

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

tools/parallel-package-release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ BUILDNAMES='A B C D E'
3131
for BUILD in $BUILDNAMES; do
3232
LCBUILD=`tr '[:upper:]' '[:lower:]' <<< $BUILD`
3333
./gradlew --stop
34-
if ! ./gradlew assembleFullRelease -PcustomSuffix="$LCBUILD" -PcustomName="AnkiDroid.$BUILD" -Duniversal-apk=true -PbuildTime="$BUILD_TIME_MS"
34+
if ! ./gradlew assembleFullRelease -PcustomSuffix="$LCBUILD" -PcustomName="AnkiDroid.$BUILD" -Duniversal-apk=true -PbuildTime="$BUILD_TIME_MS" --no-configuration-cache
3535
then
3636
echo "Unable to build parallel target $BUILD"
3737
exit 1

tools/release.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ git tag v"$VERSION"
112112
# Configuration for pushing to Play specified in build.gradle.kts 'play' task
113113
echo "Running 'publishPlayReleaseApk' gradle target"
114114
./gradlew --stop
115-
if ! ./gradlew publishPlayReleaseApk -PbuildTime="$BUILD_TIME_MS"
115+
if ! ./gradlew publishPlayReleaseApk -PbuildTime="$BUILD_TIME_MS" --no-configuration-cache
116116
then
117117
# APK contains problems, abort release
118118
exit 1
@@ -127,7 +127,7 @@ UCFLAVORS='Full Amazon Play'
127127
for UCFLAVOR in $UCFLAVORS; do
128128
./gradlew --stop
129129
echo Running assemble"$UCFLAVOR"Release target with universal APK flag
130-
if ! ./gradlew assemble"$UCFLAVOR"Release -Duniversal-apk=true -PbuildTime="$BUILD_TIME_MS"
130+
if ! ./gradlew assemble"$UCFLAVOR"Release -Duniversal-apk=true -PbuildTime="$BUILD_TIME_MS" --no-configuration-cache
131131
then
132132
echo "unable to build release APKs for flavor $UCFLAVOR"
133133
exit 1
@@ -167,7 +167,7 @@ cp proguard-mappings.tar.gz "$PREFIX"proguard-mappings.tar.gz
167167
# Create a full universal build that disables minify, to help diagnose proguard issues
168168
./gradlew --stop
169169
echo Running assembleFullRelease target with universal APK flag and MINIFY_ENABLED=false
170-
if ! MINIFY_ENABLED=false ./gradlew assembleFullRelease -Duniversal-apk=true -PbuildTime="$BUILD_TIME_MS"
170+
if ! MINIFY_ENABLED=false ./gradlew assembleFullRelease -Duniversal-apk=true -PbuildTime="$BUILD_TIME_MS" --no-configuration-cache
171171
then
172172
echo "unable to build full unminified APKs"
173173
exit 1

0 commit comments

Comments
 (0)