Skip to content

Commit d1020f2

Browse files
committed
fix(ci): rustcflags
1 parent 47feee9 commit d1020f2

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.github/workflows/build_and_test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on: [push]
55
env:
66
CARGO_TERM_COLOR: always
77
CARGOFLAGS: --workspace --all-targets --all-features --release
8+
# Use conservative CPU features for CI compatibility (no AVX-512)
9+
RUSTFLAGS: -C target-cpu=x86-64-v2
810

911
jobs:
1012
build:

.github/workflows/checks.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on: [push]
55
env:
66
CARGO_TERM_COLOR: always
77
CARGOFLAGS: --workspace --all-targets --all-features
8+
# Use conservative CPU features for CI compatibility (no AVX-512)
9+
RUSTFLAGS: -C target-cpu=x86-64-v2
810

911
jobs:
1012
formatting:
@@ -66,7 +68,7 @@ jobs:
6668
6769
- name: Run cargo-udeps
6870
env:
69-
RUSTFLAGS: -A warnings
71+
RUSTFLAGS: -A warnings -C target-cpu=x86-64-v2
7072
uses: aig787/cargo-udeps-action@v1
7173
with:
7274
version: "latest"

.github/workflows/gate-count-badges.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
push:
55
branches: [ main ]
66

7+
env:
8+
# Use conservative CPU features for CI compatibility (no AVX-512)
9+
RUSTFLAGS: -C target-cpu=x86-64-v2
10+
711
jobs:
812
gate-count:
913
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)