You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by ca...@apache.org on 2023/03/06 06:48:54 UTC

[linkis] branch dev-1.3.2 updated: Git action adds spark compilation (#4243)

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

casion pushed a commit to branch dev-1.3.2
in repository https://gitbox.apache.org/repos/asf/linkis.git


The following commit(s) were added to refs/heads/dev-1.3.2 by this push:
     new d6dc17631 Git action adds spark compilation (#4243)
d6dc17631 is described below

commit d6dc176313313aa99a5b04e9e8935f8104db1f01
Author: binbincheng <10...@users.noreply.github.com>
AuthorDate: Mon Mar 6 14:48:48 2023 +0800

    Git action adds spark compilation (#4243)
    
    * Git action adds spark compilation
---
 .github/workflows/build-backend.yml | 26 +++++++++++++++++++++++++-
 1 file changed, 25 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/build-backend.yml b/.github/workflows/build-backend.yml
index 350c52198..319779f42 100644
--- a/.github/workflows/build-backend.yml
+++ b/.github/workflows/build-backend.yml
@@ -25,7 +25,6 @@ env:
 jobs:
   build-backend:
     runs-on: ubuntu-latest
-
     steps:
     - name: Checkout
       uses: actions/checkout@v2
@@ -37,6 +36,31 @@ jobs:
     - name: Build backend by maven
       run:
         ./mvnw clean package
+  build-spark:
+    runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        installSpark: [ 'spark2.4-hadoop2.3', 'spark3.2-hadoop3.3','spark2.4-hadoop3.3' ]
+    steps:
+    - name: Checkout
+      uses: actions/checkout@v2
+    - name: Set up JDK 8
+      uses: actions/setup-java@v2
+      with:
+       distribution: 'temurin'
+       java-version: 8
+    - if: ${{ matrix.installSpark == 'spark2.4-hadoop2.3' }}
+      name: build-spark on init
+      run:
+        ./mvnw clean install -Pspark-2.4 -Phadoop-2.3 -Dmaven.test.skip=true
+    - if: ${{ matrix.installSpark == 'spark3.2-hadoop3.3' }}
+      name: build-spark on 3.2
+      run:
+        ./mvnw clean install -Pspark-3.2 -Phadoop-3.3 -Dmaven.test.skip=true
+    - if: ${{ matrix.installSpark == 'spark2.4-hadoop3.3' }}
+      name: build-spark on 2.4
+      run:
+        ./mvnw clean install -Pspark-2.4-hadoop-3.3 -Phadoop-3.3 -Dmaven.test.skip=true
 #    - name: Upload coverage to Codecov
 #      uses: codecov/codecov-action@v3.0.0
 #      with:


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org