This is an automated email from the ASF dual-hosted git repository.

jamesnetherton pushed a commit to branch camel-master
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git

commit d5e5ba5a3a490313aa5486871663f067fd945c3e
Author: Peter Palaga <ppal...@redhat.com>
AuthorDate: Wed Feb 12 13:45:29 2020 +0100

    Re-use the cached local Maven repo even in build-alternative-jvm job
---
 .github/workflows/pr-build.yaml | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/.github/workflows/pr-build.yaml b/.github/workflows/pr-build.yaml
index 3e4843a..4a29823 100644
--- a/.github/workflows/pr-build.yaml
+++ b/.github/workflows/pr-build.yaml
@@ -55,6 +55,7 @@ jobs:
             maven-${{ github.sha }}
   build-alternative-jvm:
     runs-on: ubuntu-latest
+    needs: build
     strategy:
       matrix:
         java: [ '11' , '12' ]
@@ -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} \

Reply via email to