From 4878866c98e0d0f5dfe8e0551e92d5581e9573a6 Mon Sep 17 00:00:00 2001 From: Alexander Kriegisch Date: Sat, 2 Apr 2022 10:07:34 +0700 Subject: [PATCH] CI build: use Maven cache Relates to #150. Signed-off-by: Alexander Kriegisch --- .github/workflows/maven.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 0a013bf15..93da5164e 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -39,6 +39,18 @@ jobs: ./mvnw -B --version ant -version + - name: Set up cache for ~./m2/repository + uses: actions/cache@v3 + with: + path: | + ~/.m2/repository + !~/.m2/repository/org/aspectj + key: maven-${{ runner.os }}-java-${{ matrix.java }}-${{ hashFiles('**/pom.xml') }} + restore-keys: | + maven-${{ runner.os }}-java-${{ matrix.java }}- + maven-${{ runner.os }}- + maven- + - name: Compile + package code run: ./mvnw -B --file pom.xml -DskipTests package -- 2.39.5