Skip to content

Commit

Permalink
feat: add cache to workflow for faster builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Okeanos committed Dec 31, 2024
1 parent 8816174 commit 8e6ad67
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ jobs:
java-version: |
${{ matrix.java }}
11
- name: Cache Maven artifacts
uses: actions/cache@v4
with:
path: |
~/.m2/repository
~/.m2/wrapper
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Setup Maven
run: |
mkdir -p .mvn
Expand Down Expand Up @@ -70,6 +79,15 @@ jobs:
with:
distribution: zulu
java-version: ${{ matrix.java }}
- name: Cache Maven artifacts
uses: actions/cache@v4
with:
path: |
~/.m2/repository
~/.m2/wrapper
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Setup Maven
run: |
mkdir -p .mvn
Expand Down

0 comments on commit 8e6ad67

Please sign in to comment.