Skip to content

Commit 3d8d019

Browse files
committed
build: Add maven build cache
1 parent fc16410 commit 3d8d019

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.github/workflows/full-build.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ jobs:
2222
with:
2323
java-version: ${{ matrix.jre }}
2424
distribution: 'temurin'
25-
cache: maven
25+
- name: Restore Maven cache
26+
uses: skjolber/[email protected]
27+
with:
28+
step: restore
2629
- name: Install
2730
run: mvn clean install -DskipTests -q -P gradlePlugin
2831
- name: Build
@@ -31,6 +34,10 @@ jobs:
3134
BUILD_PORT: 0
3235
BUILD_SECURE_PORT: 0
3336
BUILD_LOG_LEVEL: 'ERROR'
37+
- name: Save Maven Cache
38+
uses: skjolber/[email protected]
39+
with:
40+
step: save
3441
- name: Test Result
3542
uses: mikepenz/action-junit-report@v5
3643
if: failure()

.github/workflows/quick-build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ jobs:
2424
java-version: ${{ matrix.java_version }}
2525
distribution: 'temurin'
2626
cache: maven
27+
- name: Restore Maven cache
28+
uses: skjolber/[email protected]
29+
with:
30+
step: restore
2731
- name: Install
2832
run: mvn clean install -DskipTests -q -B
2933
env:
@@ -36,6 +40,10 @@ jobs:
3640
BUILD_PORT: 0
3741
BUILD_SECURE_PORT: 0
3842
BUILD_LOG_LEVEL: 'ERROR'
43+
- name: Save Maven cache
44+
uses: skjolber/[email protected]
45+
with:
46+
step: save
3947
- name: Test Result
4048
uses: mikepenz/action-junit-report@v5
4149
if: failure()

0 commit comments

Comments
 (0)