Skip to content

Commit 943b435

Browse files
committed
build: Try another maven build cache
1 parent 3d8d019 commit 943b435

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

.github/workflows/full-build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,14 @@ jobs:
2222
with:
2323
java-version: ${{ matrix.jre }}
2424
distribution: 'temurin'
25-
- name: Restore Maven cache
26-
uses: skjolber/maven-cache[email protected]
25+
- name: Cache Maven repository
26+
uses: actions/cache@v4
2727
with:
28-
step: restore
28+
path: ~/.m2/repository
29+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
30+
restore-keys: |
31+
${{ runner.os }}-maven-
32+
enableCrossOsArchive: true
2933
- name: Install
3034
run: mvn clean install -DskipTests -q -P gradlePlugin
3135
- name: Build
@@ -34,10 +38,6 @@ jobs:
3438
BUILD_PORT: 0
3539
BUILD_SECURE_PORT: 0
3640
BUILD_LOG_LEVEL: 'ERROR'
37-
- name: Save Maven Cache
38-
uses: skjolber/[email protected]
39-
with:
40-
step: save
4141
- name: Test Result
4242
uses: mikepenz/action-junit-report@v5
4343
if: failure()

.github/workflows/quick-build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,14 @@ jobs:
2424
java-version: ${{ matrix.java_version }}
2525
distribution: 'temurin'
2626
cache: maven
27-
- name: Restore Maven cache
28-
uses: skjolber/maven-cache[email protected]
27+
- name: Cache Maven repository
28+
uses: actions/cache@v4
2929
with:
30-
step: restore
30+
path: ~/.m2/repository
31+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
32+
restore-keys: |
33+
${{ runner.os }}-maven-
34+
enableCrossOsArchive: true
3135
- name: Install
3236
run: mvn clean install -DskipTests -q -B
3337
env:
@@ -40,10 +44,6 @@ jobs:
4044
BUILD_PORT: 0
4145
BUILD_SECURE_PORT: 0
4246
BUILD_LOG_LEVEL: 'ERROR'
43-
- name: Save Maven cache
44-
uses: skjolber/[email protected]
45-
with:
46-
step: save
4747
- name: Test Result
4848
uses: mikepenz/action-junit-report@v5
4949
if: failure()

0 commit comments

Comments
 (0)