diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 8aa0f42916e6..a373b0e76e7a 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -86,7 +86,7 @@ jobs: sparkr=`./dev/is-changed.py -m sparkr` tpcds=`./dev/is-changed.py -m sql` docker=`./dev/is-changed.py -m docker-integration-tests` - # 'build', 'scala-212', and 'java-11-17' are always true for now. + # 'build', 'scala-213', and 'java-11-17' are always true for now. # It does not save significant time and most of PRs trigger the build. precondition=" { @@ -95,7 +95,7 @@ jobs: \"sparkr\": \"$sparkr\", \"tpcds-1g\": \"$tpcds\", \"docker-integration-tests\": \"$docker\", - \"scala-212\": \"true\", + \"scala-213\": \"true\", \"java-11-17\": \"true\", \"lint\" : \"true\", \"k8s-integration-tests\" : \"true\", @@ -728,10 +728,10 @@ jobs: ./build/mvn $MAVEN_CLI_OPTS -DskipTests -Pyarn -Pmesos -Pkubernetes -Pvolcano -Phive -Phive-thriftserver -Phadoop-cloud -Djava.version=${JAVA_VERSION/-ea} install rm -rf ~/.m2/repository/org/apache/spark - scala-212: + scala-213: needs: precondition - if: fromJson(needs.precondition.outputs.required).scala-212 == 'true' - name: Scala 2.12 build with SBT + if: fromJson(needs.precondition.outputs.required).scala-213 == 'true' + name: Scala 2.13 build with SBT runs-on: ubuntu-22.04 steps: - name: Checkout Spark repository @@ -761,9 +761,9 @@ jobs: uses: actions/cache@v3 with: path: ~/.cache/coursier - key: scala-212-coursier-${{ hashFiles('**/pom.xml', '**/plugins.sbt') }} + key: scala-213-coursier-${{ hashFiles('**/pom.xml', '**/plugins.sbt') }} restore-keys: | - scala-212-coursier- + scala-213-coursier- - name: Install Java 8 uses: actions/setup-java@v3 with: @@ -771,8 +771,8 @@ jobs: java-version: 8 - name: Build with SBT run: | - ./dev/change-scala-version.sh 2.12 - ./build/sbt -Pyarn -Pmesos -Pkubernetes -Pvolcano -Phive -Phive-thriftserver -Phadoop-cloud -Pkinesis-asl -Pdocker-integration-tests -Pkubernetes-integration-tests -Pspark-ganglia-lgpl -Pscala-2.12 compile Test/compile + ./dev/change-scala-version.sh 2.13 + ./build/sbt -Pyarn -Pmesos -Pkubernetes -Pvolcano -Phive -Phive-thriftserver -Phadoop-cloud -Pkinesis-asl -Pdocker-integration-tests -Pkubernetes-integration-tests -Pspark-ganglia-lgpl -Pscala-2.13 compile Test/compile # Any TPC-DS related updates on this job need to be applied to tpcds-1g-gen job of benchmark.yml as well tpcds-1g: