From bc0034fd0fcd6deb26ccde06466646698327e224 Mon Sep 17 00:00:00 2001 From: Foxocube Date: Sun, 3 May 2026 23:12:33 +0100 Subject: [PATCH] Add Maven caching to github builds --- .github/workflows/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2e3f509..4a5d5ed 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,6 +27,11 @@ jobs: architecture: x64 cache: maven + - name: Restore Maven cache + uses: skjolber/maven-cache-github-action@v3.1.1 + with: + step: restore + - name: Maven Validate run: mvn -B --settings .mvn/custom-settings.xml validate - name: Maven Compile @@ -57,6 +62,11 @@ jobs: name: jar-file path: target/mediatoad-1-SNAPSHOT-jar-with-dependencies.jar + - name: Save Maven cache + uses: skjolber/maven-cache-github-action@v3.1.1 + with: + step: save + build-image: runs-on: ubuntu-latest