Skip to content

Commit 86f2ae1

Browse files
committed
caching
1 parent c1d64e7 commit 86f2ae1

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

.github/workflows/spring-boot-2-matrix.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ jobs:
4646
distribution: 'temurin'
4747
java-version: '17'
4848

49+
# Workaround for https://github.com/gradle/actions/issues/21 to use config cache
50+
- name: Cache buildSrc
51+
uses: actions/cache@v4
52+
with:
53+
path: buildSrc/build
54+
key: build-logic-${{ hashFiles('buildSrc/src/**', 'buildSrc/build.gradle.kts','buildSrc/settings.gradle.kts') }}
55+
4956
- name: Setup Gradle
5057
uses: gradle/actions/setup-gradle@ed408507eac070d1f99cc633dbcf757c94c7933a
5158
with:

.github/workflows/spring-boot-3-matrix.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ jobs:
4646
distribution: 'temurin'
4747
java-version: '17'
4848

49+
# Workaround for https://github.com/gradle/actions/issues/21 to use config cache
50+
- name: Cache buildSrc
51+
uses: actions/cache@v4
52+
with:
53+
path: buildSrc/build
54+
key: build-logic-${{ hashFiles('buildSrc/src/**', 'buildSrc/build.gradle.kts','buildSrc/settings.gradle.kts') }}
55+
4956
- name: Setup Gradle
5057
uses: gradle/actions/setup-gradle@ed408507eac070d1f99cc633dbcf757c94c7933a
5158
with:

.github/workflows/spring-boot-4-matrix.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ jobs:
4646
distribution: 'temurin'
4747
java-version: '17'
4848

49+
# Workaround for https://github.com/gradle/actions/issues/21 to use config cache
50+
- name: Cache buildSrc
51+
uses: actions/cache@v4
52+
with:
53+
path: buildSrc/build
54+
key: build-logic-${{ hashFiles('buildSrc/src/**', 'buildSrc/build.gradle.kts','buildSrc/settings.gradle.kts') }}
55+
4956
- name: Setup Gradle
5057
uses: gradle/actions/setup-gradle@ed408507eac070d1f99cc633dbcf757c94c7933a
5158
with:

0 commit comments

Comments
 (0)