Skip to content

Commit 7f3e25f

Browse files
committed
fix(release): avoid host-specific CPU features
1 parent 07a937f commit 7f3e25f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ jobs:
4141
sudo apt-get install -y gcc-aarch64-linux-gnu
4242
4343
- name: Build release binary
44-
run: RUSTFLAGS="-C target-cpu=native" cargo build --target ${{ matrix.target }} --profile release --features jemalloc,asm-keccak --bin ev-reth
44+
# Release artifacts must run on the baseline CPU for each target. In
45+
# particular, `target-cpu=native` exposes host-only ARM features on
46+
# GitHub's macOS runners and causes Ring's compile-time checks to fail.
47+
run: cargo build --target ${{ matrix.target }} --profile release --features jemalloc,asm-keccak --bin ev-reth
4548

4649
- name: Create tarball
4750
if: matrix.os != 'windows-latest'

0 commit comments

Comments
 (0)