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 772bbf6 [SPARK-51990] Use `Swift` docker image instead of
`setup-swift` on Linux environments
772bbf6 is described below
commit 772bbf608ee6a79487d1002e675bc348955dad9b
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Fri May 2 19:11:51 2025 -0700
[SPARK-51990] Use `Swift` docker image instead of `setup-swift` 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 stable. Currently, `main` branch is broken due to
`setup-swift` GPG flakiness issue.
-
https://github.com/apache/spark-connect-swift/actions/runs/14805858531/job/41574848434
### 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 #105 from dongjoon-hyun/remove_setup_swift.
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..848da9a 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 -v $PWD:/spark -w /spark swift:6.1 swift build -v
integration-test-mac:
runs-on: macos-15
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]