Skip to content

Commit 47e3158

Browse files
committed
restore github actions caching, issue is not a direct causation
1 parent b300493 commit 47e3158

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ jobs:
3232
uses: actions/setup-java@v1
3333
with:
3434
java-version: ${{ matrix.java }}
35+
- name: setup-cache
36+
uses: actions/[email protected]
37+
with:
38+
path: |
39+
~/.gradle/caches
40+
~/.gradle/wrapper
41+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
42+
restore-keys: |
43+
${{ runner.os }}-gradle-
3544
- name: build
3645
run: ./gradlew ${GRADLE_SWITCHES} build test
3746

@@ -47,6 +56,15 @@ jobs:
4756
uses: actions/setup-java@v1
4857
with:
4958
java-version: "11"
59+
- name: setup-cache
60+
uses: actions/[email protected]
61+
with:
62+
path: |
63+
~/.gradle/caches
64+
~/.gradle/wrapper
65+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
66+
restore-keys: |
67+
${{ runner.os }}-gradle-
5068
- name: publish-snapshots
5169
if: github.event_name == 'push'
5270
timeout-minutes: 30

.github/workflows/publish.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ jobs:
2323
uses: actions/setup-java@v1
2424
with:
2525
java-version: "11"
26+
- name: setup-cache
27+
uses: actions/[email protected]
28+
with:
29+
path: |
30+
~/.gradle/caches
31+
~/.gradle/wrapper
32+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
33+
restore-keys: |
34+
${{ runner.os }}-gradle-
2635
2736
- name: publish-candidate
2837
if: contains(github.ref, '-rc.')

0 commit comments

Comments
 (0)