Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
Update CI caching
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbanes committed Dec 30, 2020
1 parent 7962283 commit 54e4c07
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,15 @@ jobs:
- name: Generate cache key
run: ./checksum.sh checksum.txt

- uses: actions/cache@v1
- uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('checksum.txt') }}
restore-keys: |
${{ runner.os }}-gradle-
path: |
~/.gradle/caches/modules-*
~/.gradle/caches/jars-*
~/.gradle/caches/build-cache-*
key: gradle-${{ hashFiles('checksum.txt') }}

- name: Build, lint and spotless
- name: Build
run: ./gradlew spotlessCheck assemble lintDebug --scan

- name: Clean secrets
Expand Down Expand Up @@ -77,12 +78,13 @@ jobs:
- name: Generate cache key
run: ./checksum.sh checksum.txt

- uses: actions/cache@v1
- uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('checksum.txt') }}
restore-keys: |
${{ runner.os }}-gradle-
path: |
~/.gradle/caches/modules-*
~/.gradle/caches/jars-*
~/.gradle/caches/build-cache-*
key: gradle-${{ hashFiles('checksum.txt') }}

- name: Run tests
uses: reactivecircus/android-emulator-runner@v2
Expand Down Expand Up @@ -131,10 +133,13 @@ jobs:
- name: Generate cache key
run: ./checksum.sh checksum.txt

- uses: actions/cache@v1
- uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('checksum.txt') }}
path: |
~/.gradle/caches/modules-*
~/.gradle/caches/jars-*
~/.gradle/caches/build-cache-*
key: gradle-${{ hashFiles('checksum.txt') }}

- name: Build docs
# We manually run assemble & dokka before uploadArchives. If we only run uploadArchives,
Expand Down

0 comments on commit 54e4c07

Please sign in to comment.