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

mikexue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/eventmesh.git


The following commit(s) were added to refs/heads/master by this push:
     new eb1c4045a Speed up CI
     new f54f9ca76 Merge pull request #3563 from mytang0/speed-up-ci
eb1c4045a is described below

commit eb1c4045a77c2007126c73ca32ab7daa123d9b89
Author: mytang0 <[email protected]>
AuthorDate: Thu Mar 30 11:24:53 2023 +0800

    Speed up CI
---
 .github/workflows/ci.yml | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 04f8e3211..5c3b5ee41 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -21,7 +21,7 @@ name: "Continuous Integration"
 
 on:
   push:
-    branches: ['*']
+    branches: [ '*' ]
   pull_request:
     branches: [ '*' ]
 
@@ -31,8 +31,8 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        os: [ubuntu-latest, macOS-latest]
-        java: [8, 11]
+        os: [ ubuntu-latest, macOS-latest ]
+        java: [ 8, 11 ]
     runs-on: ${{ matrix.os }}
 
     steps:
@@ -54,8 +54,17 @@ jobs:
           distribution: 'zulu'
           java-version: ${{ matrix.java }}
 
+      - name: Cache Gradle packages
+          uses: actions/cache@v3
+          with:
+            path: |
+              ~/.gradle/caches
+              ~/.gradle/wrapper
+            key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', 
'**/gradle-wrapper.properties') }}
+            restore-keys: ${{ runner.os }}-gradle
+      # https://docs.gradle.org/current/userguide/performance.html
       - name: Build
-        run: ./gradlew clean build jar dist jacocoTestReport
+        run: ./gradlew clean build jar dist jacocoTestReport --parallel 
--daemon
 
       - name: Install plugin
         run: ./gradlew installPlugin


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to