Skip to content

Commit

Permalink
Add maven dependency caching to the CI
Browse files Browse the repository at this point in the history
* Should help with performance
  • Loading branch information
pehala committed Sep 6, 2020
1 parent 7396b2b commit 7bc0b89
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 1.8
# Step that caches and restores maven dependencies
- uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Install Dependencies
run: sudo apt-get install -y genisoimage
- name: Build with Maven
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 1.8
# Step that caches and restores maven dependencies
- uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Install Dependencies
run: sudo apt-get install -y genisoimage
- name: Build with Maven
Expand Down

0 comments on commit 7bc0b89

Please sign in to comment.