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

jiayu pushed a commit to branch fix-github-action
in repository https://gitbox.apache.org/repos/asf/incubator-sedona.git


The following commit(s) were added to refs/heads/fix-github-action by this push:
     new b909b991 Enable CI on all supported Spark version
b909b991 is described below

commit b909b991f3ba2be2b1e6c9c668695dea1cb28a81
Author: Jia Yu <[email protected]>
AuthorDate: Tue Jul 12 18:25:08 2022 -0700

    Enable CI on all supported Spark version
---
 .github/workflows/java.yml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml
index 6d8f7b59..7d83775f 100644
--- a/.github/workflows/java.yml
+++ b/.github/workflows/java.yml
@@ -42,7 +42,10 @@ jobs:
     - env:
         SPARK_VERSION: ${{ matrix.spark }}
         SCALA_VERSION: ${{ matrix.scala }}
-      run: if [ ${SPARK_VERSION:0:1} == "3" ]; then mvn -q clean install 
-Dscala=${SCALA_VERSION:0:4} -Dspark=3.0 ; else mvn -q clean install 
-Dscala=${SCALA_VERSION:0:4} -Dspark=2.4 ; fi
+      run: |
+        if [ ${SPARK_VERSION:0:1} == "3" ]; \
+        then mvn -q clean install -Dscala=${SCALA_VERSION:0:4} -Dspark=3.0 
-Dspark.version=${SPARK_VERSION}; \
+        else mvn -q clean install -Dscala=${SCALA_VERSION:0:4} -Dspark=2.4 
-Dspark.version=${SPARK_VERSION}; fi \
     - run: mkdir staging
     - run: cp core/target/sedona-*.jar staging
     - run: cp sql/target/sedona-*.jar staging

Reply via email to