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 <dongj...@apache.org>
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 <dongj...@apache.org>
    Signed-off-by: Dongjoon Hyun <dongj...@apache.org>
---
 .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: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to