Skip to content

Commit 66a468b

Browse files
committed
Removed native and redundant build caches from Semaphore configuration
1 parent 3ffc782 commit 66a468b

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

.semaphore/semaphore.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,12 @@ global_job_config:
5050
- export SDK_SUM=$(checksum ./script/ci-install-android-sdk.sh)
5151
- export APP_GRADLE_CACHE=project-gradle-cache-$GRADLE_SUM # project .gradle cache, per Gradle config hash
5252
- export ANDROID_SDK_CACHE=android-sdk-$SDK_SUM # Android SDK cache, per SDK installer hash
53-
- export BUILD_CXX_CACHE=build-cxx-cache-$SEMAPHORE_GIT_BRANCH-$GRADLE_SUM # per branch and Gradle config hash
54-
- export BUILD_NATIVE_CACHE=build-native-cache-$SEMAPHORE_GIT_BRANCH-$GRADLE_SUM # per branch and Gradle config hash
5553
# restore app caches
5654
- cache restore $APP_GRADLE_CACHE
57-
- cache restore $BUILD_CXX_CACHE
58-
- cache restore $BUILD_NATIVE_CACHE
5955
# restore global caches
6056
- cache restore $ANDROID_SDK_CACHE
6157
- cache restore gradle-wrapper
6258
- cache restore gradle-cache-$GRADLE_SUM
63-
- cache restore gradle-cache
64-
- cache restore android-build-cache-$GRADLE_SUM
65-
- cache restore android-build-cache
6659
# Install Android dependencies if needed
6760
- ./script/ci-install-android-sdk.sh
6861
# Install ninja
@@ -87,16 +80,13 @@ blocks:
8780
# store app cache
8881
- echo "Store the app cache"
8982
- cache has_key $APP_GRADLE_CACHE || cache store $APP_GRADLE_CACHE .gradle
90-
- cache has_key $BUILD_CXX_CACHE || cache store $BUILD_CXX_CACHE FlowCrypt/.cxx
91-
- cache has_key $BUILD_NATIVE_CACHE || cache store $BUILD_NATIVE_CACHE FlowCrypt/.externalNativeBuild
9283

9384
# clean and store global cache
9485
- echo "Store the global cache"
9586
- find ~/.gradle/caches/ -name "*.lock" -type f -delete # https://medium.com/cirruslabs/mastering-gradle-caching-and-incremental-builds-37eb1af7fcde
9687
- cache has_key $ANDROID_SDK_CACHE || cache store $ANDROID_SDK_CACHE $ANDROID_HOME
9788
- cache has_key gradle-wrapper || cache store gradle-wrapper ~/.gradle/wrapper
9889
- cache has_key gradle-cache-$GRADLE_SUM || cache store gradle-cache-$GRADLE_SUM ~/.gradle/caches
99-
- cache has_key android-build-cache-$GRADLE_SUM || cache store android-build-cache-$GRADLE_SUM ~/.android/build-cache
10090

10191
- name: 'Testing'
10292
task:

0 commit comments

Comments
 (0)