Skip to content

Commit

Permalink
Re-use the cached local Maven repo even in build-alternative-jvm job
Browse files Browse the repository at this point in the history
  • Loading branch information
ppalaga committed Feb 12, 2020
1 parent 7634cc0 commit d5c59e1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/pr-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ jobs:
maven-${{ github.sha }}
build-alternative-jvm:
runs-on: ubuntu-latest
needs: build
strategy:
matrix:
java: [ '11' , '12' ]
Expand All @@ -68,6 +69,13 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Restore Cache
uses: actions/cache@v1
with:
path: ~/.m2/repository
key: maven-${{ github.sha }}
restore-keys: |
maven-${{ github.sha }}
- name: Build on ${{ matrix.java }}
run: |
./mvnw -V -B ${BRANCH_OPTIONS} \
Expand Down

0 comments on commit d5c59e1

Please sign in to comment.