Skip to content

Commit 224e1f9

Browse files
committed
cache gradle repository
1 parent 20db81e commit 224e1f9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/pull_request.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,16 @@ jobs:
4343
# cache: 'gradle'
4444
- name: Install Nightly Swift
4545
run: "bash -xc './docker/install_nightly_untested_swift.sh'"
46+
# Cache .m2/repository
47+
- name: Cache local Gradle repository
48+
uses: actions/cache@v4
49+
continue-on-error: true
50+
with:
51+
path: ~/.gradle/caches
52+
key: ${{ runner.os }}-gradle-cache-${{ hashFiles('**/build.gradle') }}-${{ ${{ hashFiles('**/build.gradle.kts') }} }}
53+
restore-keys: |
54+
${{ runner.os }}-gradle-cache
55+
${{ runner.os }}-gradle-
4656
- name: Gradle build
4757
run: ./gradlew build --info --no-daemon
4858

0 commit comments

Comments
 (0)