You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by do...@apache.org on 2019/09/13 15:05:04 UTC

[spark] branch branch-2.4 updated: [SPARK-29073][INFRA][2.4] Add GitHub Action to branch-2.4 for `Scala-2.11/2.12` build

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

dongjoon pushed a commit to branch branch-2.4
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-2.4 by this push:
     new 56ef752  [SPARK-29073][INFRA][2.4] Add GitHub Action to branch-2.4 for `Scala-2.11/2.12` build
56ef752 is described below

commit 56ef75206d3da8e3a399d29adb97055b94037c94
Author: Dongjoon Hyun <dh...@apple.com>
AuthorDate: Fri Sep 13 08:04:04 2019 -0700

    [SPARK-29073][INFRA][2.4] Add GitHub Action to branch-2.4 for `Scala-2.11/2.12` build
    
    ### What changes were proposed in this pull request?
    
    Apache Spark community is using GitHub action to monitor `JDK8/JDK11` build on `master` branch. It's very helpful. This PR aims to monitor both `Scala-2.11/2.12` build on `branch-2.4` by using GitHub Action.
    
    ### Why are the changes needed?
    
    Currently, Apache Spark Jenkins servers only test `Scala-2.11` on `branch-2.4`.
    
    ### Does this PR introduce any user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    Manual. (This can be tested in the repositories which received GitHub Action invitation)
    
    - https://github.com/dongjoon-hyun/action/commit/61a77a04854987dde3d5eff873edbf2625907f83/checks
    
    Closes #25781 from dongjoon-hyun/SPARK-29073.
    
    Authored-by: Dongjoon Hyun <dh...@apple.com>
    Signed-off-by: Dongjoon Hyun <dh...@apple.com>
---
 .github/workflows/branch-2.4.yml | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/.github/workflows/branch-2.4.yml b/.github/workflows/branch-2.4.yml
new file mode 100644
index 0000000..2a96ba6
--- /dev/null
+++ b/.github/workflows/branch-2.4.yml
@@ -0,0 +1,30 @@
+name: branch-2.4
+
+on:
+  push:
+    branches:
+    - branch-2.4
+
+jobs:
+  build:
+
+    runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        scala: [ '2.11', '2.12' ]
+    name: Build Spark with Scala ${{ matrix.scala }}
+
+    steps:
+    - uses: actions/checkout@master
+    - name: Set up JDK 8
+      uses: actions/setup-java@v1
+      with:
+        version: '1.8'
+    - name: Change to Scala ${{ matrix.scala }}
+      run: |
+        dev/change-scala-version.sh ${{ matrix.scala }}
+    - name: Build with Maven
+      run: |
+        export MAVEN_OPTS="-Xmx2g -XX:ReservedCodeCacheSize=512m -Dorg.slf4j.simpleLogger.defaultLogLevel=WARN"
+        export MAVEN_CLI_OPTS="--no-transfer-progress"
+        ./build/mvn $MAVEN_CLI_OPTS -DskipTests -Pyarn -Pmesos -Pkubernetes -Phive -Phive-thriftserver -Pscala-${{ matrix.scala }} package


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