This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/spark-connect-swift.git
The following commit(s) were added to refs/heads/main by this push:
new c1e08d2 [SPARK-51990] Use `Swift` docker image on Linux environments
c1e08d2 is described below
commit c1e08d2631b6b6e189abb513fa4c8662fd31bfea
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Sat May 3 07:12:00 2025 -0700
[SPARK-51990] Use `Swift` docker image on Linux environments
### What changes were proposed in this pull request?
This PR aims to use `Swift` docker image instead of `setup-swift` on Linux
environments
### Why are the changes needed?
To make Linux CIs more stable.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Pass the CIs.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #106 from dongjoon-hyun/SPARK-51990.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
---
.github/workflows/build_and_test.yml | 30 ++++++++++++++++--------------
1 file changed, 16 insertions(+), 14 deletions(-)
diff --git a/.github/workflows/build_and_test.yml
b/.github/workflows/build_and_test.yml
index 4ac6085..ff007cb 100644
--- a/.github/workflows/build_and_test.yml
+++ b/.github/workflows/build_and_test.yml
@@ -39,14 +39,8 @@ jobs:
with:
config: .github/.licenserc.yaml
- build:
- runs-on: ${{ matrix.os }}
- strategy:
- fail-fast: false
- matrix:
- os:
- - ubuntu-latest
- - macos-15
+ build-macos-15:
+ runs-on: macos-15
steps:
- uses: actions/checkout@v4
- uses: swift-actions/setup-swift@d10500c1ac8822132eebbd74c48c3372c71d7ff5
@@ -55,6 +49,15 @@ jobs:
- name: Build
run: swift build -v
+ build-ubuntu-latest:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - name: Build
+ run: |
+ docker run swift:6.1 uname -a
+ docker run -v $PWD:/spark -w /spark swift:6.1 swift build -v
+
# setup-swift doesn't support ARM linux yet.
build-ubuntu-arm:
runs-on: ubuntu-24.04-arm
@@ -63,7 +66,7 @@ jobs:
- name: Build
run: |
docker run swift:6.1 uname -a
- docker run -v $PWD:/orc -w /orc swift:6.1 swift build -v
+ docker run -v $PWD:/spark -w /spark swift:6.1 swift build -v
integration-test-linux:
runs-on: ubuntu-latest
@@ -79,11 +82,10 @@ jobs:
options: --entrypoint /opt/spark/sbin/start-connect-server.sh
steps:
- uses: actions/checkout@v4
- - uses: swift-actions/setup-swift@d10500c1ac8822132eebbd74c48c3372c71d7ff5
- with:
- swift-version: "6.1"
- - name: Test
- run: swift test --no-parallel
+ - name: Build
+ run: |
+ docker run swift:6.1 uname -a
+ docker run --add-host=host.docker.internal:host-gateway -v $PWD:/spark
-w /spark -e SPARK_REMOTE='sc://host.docker.internal:15003' swift:6.1 swift
test --no-parallel
integration-test-mac:
runs-on: macos-15
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]