Skip to content

Commit

Permalink
Switch to caching Gradle wrapper and components (#3348)
Browse files Browse the repository at this point in the history
Adds a cache for Gradle components. Cache will be saved on successful
build and keyed off Android gradle build files.

b/337337924

(cherry picked from commit 9b5edf1)
  • Loading branch information
kaidokert authored and anonymous1-me committed May 24, 2024
1 parent 533a741 commit c615025
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,21 @@ jobs:
# Use fetch depth of 0 to get full history for a valid build id.
fetch-depth: 0
persist-credentials: false
- name: Setup Gradle
- name: Cache Gradle
uses: actions/cache@v3
if: startsWith( matrix.target_platform , 'android')
<<<<<<< HEAD
run: |
for i in `seq 1 5`; do
starboard/android/apk/gradlew --version || true
done
=======
with:
key: gradle-cache-${{ hashFiles('starboard/android/apk/**/*gradle*') }}
path: |
/root/.gradle/caches
/root/.gradle/wrapper
>>>>>>> 9b5edf1729a (Switch to caching Gradle wrapper and components (#3348))
- name: GN
uses: ./.github/actions/gn
- name: Build Cobalt
Expand Down

0 comments on commit c615025

Please sign in to comment.