Skip to content

Commit

Permalink
CI: Android build task gradle file cache too
Browse files Browse the repository at this point in the history
  • Loading branch information
ericoporto committed Sep 1, 2023
1 parent 31d7777 commit 5aaf5b8
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,13 @@ build_android_task:
memory: 8G
greedy: true
git_submodules_script: git submodule update --init --recursive
gradle_cache:
folder: ~/.gradle/caches
fingerprint_script:
- echo $CIRRUS_OS
- cat **/*.gradle* **/gradle-wrapper.properties || true
populate_script:
- mkdir -p ~/.gradle/caches
build_prepare_script: |
cd Android && ./and-build.sh prepare
build_debug_library_and_runtime_script: |
Expand All @@ -255,7 +262,11 @@ build_android_task:
cd Android && ./and-build.sh archive_project
proj_artifacts:
path: AGS-*-android-proj-*.zip

cleanup_gradle_script: |
rm -rf ~/.gradle/caches/$GRADLE_VERSION/
rm -rf ~/.gradle/daemon/
rm -rf ~/.gradle/caches/transforms-*
rm -rf ~/.gradle/caches/journal-*
build_emscripten_task:
container:
Expand Down

0 comments on commit 5aaf5b8

Please sign in to comment.