]> source.dussan.org Git - aspectj.git/commitdiff
CI build: use Maven cache
authorAlexander Kriegisch <Alexander@Kriegisch.name>
Sat, 2 Apr 2022 03:07:34 +0000 (10:07 +0700)
committerAlexander Kriegisch <Alexander@Kriegisch.name>
Sat, 2 Apr 2022 04:29:45 +0000 (11:29 +0700)
Relates to #150.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
.github/workflows/maven.yml

index 0a013bf15b1ac61e54d82e1382a19dec2665142d..93da5164ea855b5dcb21d97c590138d383eae53b 100644 (file)
@@ -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