accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ctubb...@apache.org
Subject [accumulo] branch main updated: Add fastbuild to CI to populate Maven cache
Date Tue, 22 Sep 2020 04:04:16 GMT
This is an automated email from the ASF dual-hosted git repository.

ctubbsii pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo.git


The following commit(s) were added to refs/heads/main by this push:
     new 530e3de  Add fastbuild to CI to populate Maven cache
530e3de is described below

commit 530e3dec5361244118857789054e12a53d96d34b
Author: Christopher Tubbs <ctubbsii@apache.org>
AuthorDate: Tue Sep 22 00:00:34 2020 -0400

    Add fastbuild to CI to populate Maven cache
---
 .github/workflows/maven.yaml | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/.github/workflows/maven.yaml b/.github/workflows/maven.yaml
index 0f1c122..ee5f19c 100644
--- a/.github/workflows/maven.yaml
+++ b/.github/workflows/maven.yaml
@@ -29,7 +29,31 @@ on:
     branches: [ '*' ]
 
 jobs:
+  # fast build to populate the local maven repository cache
+  fastbuild:
+    timeout-minutes: 20
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@v2
+    - name: Set up JDK 11
+      uses: actions/setup-java@v1
+      with:
+        java-version: 11
+    - name: Cache local maven repository
+      uses: actions/cache@v2
+      with:
+        path: |
+          ~/.m2/repository/
+          !~/.m2/repository/org/apache/accumulo
+        key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
+        restore-keys: ${{ runner.os }}-m2
+    - name: Build with Maven (Fast Build)
+      run: mvn -B -V -e -ntp "-Dstyle.color=always" clean package dependency:resolve -PskipQA
+      env:
+        MAVEN_OPTS: -Djansi.force=true
+  # more complete builds with tests
   mvn:
+    needs: fastbuild
     strategy:
       matrix:
         profile:


Mime
View raw message