Skip to content

Commit 94aeb05

Browse files
committed
[SPARK-53376] Run Swift build first before running test
### What changes were proposed in this pull request? This PR aims to build `Swift` code first before running `test`. ### Why are the changes needed? Like `Apache Spark` main repository, we had better stabilize the CIs by isolating any compilation failures first before running the tests. ### 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 #222 from dongjoon-hyun/SPARK-53376. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent c69db71 commit 94aeb05

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/build_and_test.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ jobs:
101101
- uses: swift-actions/setup-swift@d10500c1ac8822132eebbd74c48c3372c71d7ff5
102102
with:
103103
swift-version: "6.1"
104+
- name: Build
105+
run: swift build -c release
104106
- name: Test
105107
run: |
106108
curl -LO https://dist.apache.org/repos/dist/dev/spark/v4.1.0-preview1-rc1-bin/spark-4.1.0-preview1-bin-hadoop3.tgz
@@ -119,6 +121,8 @@ jobs:
119121
- uses: swift-actions/setup-swift@d10500c1ac8822132eebbd74c48c3372c71d7ff5
120122
with:
121123
swift-version: "6.1"
124+
- name: Build
125+
run: swift build -c release
122126
- name: Test
123127
run: |
124128
curl -LO https://www.apache.org/dyn/closer.lua/spark/spark-4.0.0/spark-4.0.0-bin-hadoop3.tgz?action=download
@@ -139,6 +143,8 @@ jobs:
139143
- uses: swift-actions/setup-swift@d10500c1ac8822132eebbd74c48c3372c71d7ff5
140144
with:
141145
swift-version: "6.1"
146+
- name: Build
147+
run: swift build -c release
142148
- name: Test
143149
run: |
144150
curl -LO https://www.apache.org/dyn/closer.lua/spark/spark-4.0.0/spark-4.0.0-bin-hadoop3.tgz?action=download
@@ -162,6 +168,8 @@ jobs:
162168
with:
163169
distribution: zulu
164170
java-version: 17
171+
- name: Build
172+
run: swift build -c release
165173
- name: Test
166174
run: |
167175
curl -LO https://www.apache.org/dyn/closer.lua/spark/spark-3.5.6/spark-3.5.6-bin-hadoop3.tgz?action=download
@@ -187,6 +195,8 @@ jobs:
187195
with:
188196
distribution: zulu
189197
java-version: 17
198+
- name: Build
199+
run: swift build -c release
190200
- name: Test
191201
run: |
192202
curl -LO https://www.apache.org/dyn/closer.lua/spark/spark-3.5.6/spark-3.5.6-bin-hadoop3.tgz?action=download

0 commit comments

Comments
 (0)