Skip to content

Commit 6819b42

Browse files
committed
[SPARK-52085] Use release build in GitHub Action CI
### What changes were proposed in this pull request? This PR aims to use `release` build in GitHub Action CI. ### Why are the changes needed? To test with release build officially. Since `debug` is the default setting, local testing is still covering `debug` build configuration. ### Does this PR introduce _any_ user-facing change? No, this is a testing infra update. ### How was this patch tested? Pass the CIs. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #136 from dongjoon-hyun/SPARK-52085. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent 75e5030 commit 6819b42

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/build_and_test.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
with:
4848
swift-version: "6.1"
4949
- name: Build
50-
run: swift build -v
50+
run: swift build -c release
5151

5252
build-ubuntu-latest:
5353
runs-on: ubuntu-latest
@@ -56,7 +56,7 @@ jobs:
5656
- name: Build
5757
run: |
5858
docker run swift:6.1 uname -a
59-
docker run -v $PWD:/spark -w /spark swift:6.1 swift build -v
59+
docker run -v $PWD:/spark -w /spark swift:6.1 swift build -c release
6060
6161
# setup-swift doesn't support ARM linux yet.
6262
build-ubuntu-arm:
@@ -66,7 +66,7 @@ jobs:
6666
- name: Build
6767
run: |
6868
docker run swift:6.1 uname -a
69-
docker run -v $PWD:/spark -w /spark swift:6.1 swift build -v
69+
docker run -v $PWD:/spark -w /spark swift:6.1 swift build -c release
7070
7171
integration-test-linux:
7272
runs-on: ubuntu-latest
@@ -85,7 +85,7 @@ jobs:
8585
- name: Build
8686
run: |
8787
docker run swift:6.1 uname -a
88-
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
88+
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 -c release
8989
9090
integration-test-mac:
9191
runs-on: macos-15
@@ -102,7 +102,7 @@ jobs:
102102
cd /tmp/spark/sbin
103103
./start-connect-server.sh
104104
cd -
105-
swift test --no-parallel
105+
swift test --no-parallel -c release
106106
107107
integration-test-token:
108108
runs-on: macos-15
@@ -121,7 +121,7 @@ jobs:
121121
cd /tmp/spark/sbin
122122
./start-connect-server.sh
123123
cd -
124-
swift test --no-parallel
124+
swift test --no-parallel -c release
125125
126126
integration-test-mac-spark3:
127127
runs-on: macos-15
@@ -143,4 +143,4 @@ jobs:
143143
cd /tmp/spark/sbin
144144
./start-connect-server.sh --packages org.apache.spark:spark-connect_2.12:3.5.5
145145
cd -
146-
swift test --no-parallel
146+
swift test --no-parallel -c release

0 commit comments

Comments
 (0)