Skip to content

Commit 2244e3a

Browse files
authored
Add caching for Maven dependencies in build workflow
1 parent 7468745 commit 2244e3a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,10 @@ jobs:
2727
sudo apt-get update && sudo apt-get install -y --allow-downgrades libgd3/focal libpcre2-8-0/focal libpcre2-16-0/focal libpcre2-32-0/focal libpcre2-posix2/focal
2828
sudo apt-get purge -y libmono* moby* mono* php* libgdiplus libpcre2-posix3 libzip4
2929
sudo dpkg --add-architecture i386 && sudo apt-get update && sudo apt-get install -y wine32
30+
- uses: actions/cache@v3
31+
with:
32+
path: ~/.m2/repository
33+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
34+
restore-keys: |
35+
${{ runner.os }}-maven-
3036
- run: ./mvnw clean verify -B -V -e -ntp

0 commit comments

Comments
 (0)