Skip to content

Commit

Permalink
Split up gradle & kotlin native caches to make them smaller
Browse files Browse the repository at this point in the history
circleci recommends caches to not be more than 500mb so hopefully this
gets them closer to that size.
  • Loading branch information
evant committed Aug 5, 2022
1 parent e5144a9 commit 64a9389
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,22 @@ commands:
steps:
- restore_cache:
key: >-
gradle-<< parameters.cache_key >>-{{ checksum "gradle/libs.versions.toml" }}-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
gradle-cache-<< parameters.cache_key >>-{{ checksum "gradle/libs.versions.toml" }}-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
- restore_cache:
key: >-
konan-<< parameters.cache_key >>-{{ checksum "gradle/libs.versions.toml" }}-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
- steps:
<< parameters.steps >>
- save_cache:
key: >-
gradle-<< parameters.cache_key >>-{{ checksum "gradle/libs.versions.toml" }}-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
gradle-cache-<< parameters.cache_key >>-{{ checksum "gradle/libs.versions.toml" }}-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
paths:
- ~/.gradle/caches
- ~/.gradle/wrapper
- save_cache:
key: >-
konan-<< parameters.cache_key >>-{{ checksum "gradle/libs.versions.toml" }}-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
paths:
- ~/.konan
gradle_publish:
description: "Publishes to sonatype/maven central"
Expand Down

0 comments on commit 64a9389

Please sign in to comment.