Skip to content

Commit

Permalink
Explicitly define target features
Browse files Browse the repository at this point in the history
  • Loading branch information
ogxd committed Jan 6, 2024
1 parent 559b565 commit a4487b7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions .cargo/config
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
[build]
rustflags = ["-C", "target-cpu=native"]
[target.aarch64-unknown-linux-gnu]
rustflags = ["-C", "target-feature=+aes,+neon"]

[target.x86_64-unknown-linux-gnu]
rustflags = ["-C", "target-feature=+aes,+sse2"]
6 changes: 3 additions & 3 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
run: cargo build --release

- name: Test
run: cargo test --release --lib
run: cargo test --release

build_test_x86_avx2:
name: Build & Test X86 AVX2
Expand All @@ -37,7 +37,7 @@ jobs:
run: cargo build --release

- name: Test
run: cargo test --release --lib
run: cargo test --release

build_test_arm:
name: Build & Test ARM
Expand All @@ -50,4 +50,4 @@ jobs:
run: cargo build --release

- name: Test
run: cargo test --release --lib
run: cargo test --release

0 comments on commit a4487b7

Please sign in to comment.