Skip to content

Commit aa5afd6

Browse files
authored
Make PR workflows match target-cpu flags in published jars. (#3402)
1 parent 48ebd28 commit aa5afd6

4 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/iceberg_spark_test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ jobs:
7777
# Use CI profile for faster builds (no LTO) and to share cache with pr_build_linux.yml.
7878
run: |
7979
cd native && cargo build --profile ci
80+
env:
81+
RUSTFLAGS: "-Ctarget-cpu=x86-64-v3"
8082

8183
- name: Save Cargo cache
8284
uses: actions/cache/save@v5

.github/workflows/pr_build_linux.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ jobs:
9494
# CI profile: same overflow behavior as release, but faster compilation
9595
# (no LTO, parallel codegen)
9696
cargo build --profile ci
97+
env:
98+
RUSTFLAGS: "-Ctarget-cpu=x86-64-v3"
9799

98100
- name: Upload native library
99101
uses: actions/upload-artifact@v6

.github/workflows/pr_build_macos.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ jobs:
9494
# CI profile: same overflow behavior as release, but faster compilation
9595
# (no LTO, parallel codegen)
9696
cargo build --profile ci
97+
env:
98+
RUSTFLAGS: "-Ctarget-cpu=apple-m1"
9799

98100
- name: Upload native library
99101
uses: actions/upload-artifact@v6

.github/workflows/spark_sql_test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ jobs:
8383
run: |
8484
cd native
8585
cargo build --profile ci
86+
env:
87+
RUSTFLAGS: "-Ctarget-cpu=x86-64-v3"
8688

8789
- name: Upload native library
8890
uses: actions/upload-artifact@v6

0 commit comments

Comments
 (0)