aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorAlexander Kriegisch <Alexander@Kriegisch.name>2022-04-02 10:07:34 +0700
committerAlexander Kriegisch <Alexander@Kriegisch.name>2022-04-02 11:29:45 +0700
commit4878866c98e0d0f5dfe8e0551e92d5581e9573a6 (patch)
tree5f504b45209df5c503e75bd478ea9c383246875a /.github
parentb35e5bbfc39dafb9e109849fa881305366112b23 (diff)
downloadaspectj-4878866c98e0d0f5dfe8e0551e92d5581e9573a6.tar.gz
aspectj-4878866c98e0d0f5dfe8e0551e92d5581e9573a6.zip
CI build: use Maven cache
Relates to #150. Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/maven.yml12
1 files changed, 12 insertions, 0 deletions
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