Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yuqi1129 committed Sep 5, 2024
1 parent 5b21bd4 commit 3e302f7
Showing 1 changed file with 35 additions and 2 deletions.
37 changes: 35 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,48 @@ jobs:
- name: Build with Gradle
run: ./gradlew build -x test -PjdkVersion=8

# To check the spark-connector is compatible with scala2.13
spark-connector-build:
runs-on: ubuntu-latest
timeout-minutes: 30
needs: changes
if: needs.changes.outputs.source_changes == 'true'
steps:
- uses: actions/checkout@v3

- uses: actions/setup-java@v4
with:
java-version: 8
distribution: 'temurin'
cache: 'gradle'

- name: Free up disk space
run: |
dev/ci/util_free_space.sh
- name: Build with Scala2.13
run: |
./gradlew :spark-connector:spark-3.4:build -PscalaVersion=2.13 -PskipITs -PskipDockerTests=false
./gradlew :spark-connector:spark-3.5:build -PscalaVersion=2.13 -PskipITs -PskipDockerTests=false
- name: Upload unit tests report
uses: actions/upload-artifact@v3
if: failure()
with:
name: unit test report
path: |
build/reports
spark-connector/**/*.log
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
matrix:
java-version: [ 17 ]
timeout-minutes: 30
needs: changes
permissions: write-all
needs: changes
if: needs.changes.outputs.source_changes == 'true'
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand Down Expand Up @@ -105,7 +138,7 @@ jobs:
with:
name: unit test report
path: |
${{ github.workspace }}/**/build/reports
build/reports
catalogs/**/*.log
catalogs/**/*.tar
Expand Down

0 comments on commit 3e302f7

Please sign in to comment.