Skip to content

Commit 064a7ab

Browse files
committed
Cache gradle in GitHub workflows
1 parent 9d68d0d commit 064a7ab

File tree

5 files changed

+8
-0
lines changed

5 files changed

+8
-0
lines changed

.github/workflows/checkout-and-build-smithy/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ runs:
1111
with:
1212
java-version: 21
1313
distribution: 'corretto'
14+
cache: gradle
1415

1516
- uses: actions/checkout@v4
1617
with:

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
with:
2525
java-version: ${{ matrix.java }}
2626
distribution: 'corretto'
27+
cache: gradle
2728

2829
- name: Clean, build, test, and javadoc
2930
run: ./gradlew clean build javadoc -PnoFormat -Plog-tests --stacktrace
@@ -86,6 +87,7 @@ jobs:
8687
with:
8788
java-version: 17
8889
distribution: 'corretto'
90+
cache: gradle
8991

9092
- name: Publish Smithy to Maven local
9193
run: cd smithy && ./gradlew clean build pTML -PnoFormat

.github/workflows/codeguru-reviewer.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
with:
3535
distribution: 'corretto'
3636
java-version: 8
37+
cache: gradle
3738

3839
- name: Compile
3940
if: steps.iam-role.outcome == 'success'

.github/workflows/make-docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
with:
2626
java-version: 17
2727
distribution: 'corretto'
28+
cache: gradle
2829

2930
- name: Setup Node
3031
uses: actions/setup-node@v4

.github/workflows/sdk-codegen-ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
with:
5151
java-version: 17
5252
distribution: 'corretto'
53+
cache: gradle
5354

5455
- name: Set up Go 1.19
5556
uses: actions/setup-go@v5
@@ -134,6 +135,7 @@ jobs:
134135
with:
135136
java-version: 11
136137
distribution: 'corretto'
138+
cache: gradle
137139

138140
- uses: actions/checkout@v5
139141
- id: smithy-version
@@ -195,6 +197,7 @@ jobs:
195197
with:
196198
java-version: 11
197199
distribution: 'corretto'
200+
cache: gradle
198201

199202
- uses: actions/checkout@v5
200203
- id: smithy-version

0 commit comments

Comments
 (0)