Skip to content

Commit

Permalink
ci: Run on macos-latest (#168)
Browse files Browse the repository at this point in the history
* Loosen f32 sin_cos tolerance.

This lets this pass on Apple Silicon hardware.

* ci: Run on macos-latest
  • Loading branch information
waywardmonkeys authored Jul 30, 2024
1 parent d2d9567 commit fff0504
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ jobs:
- { target: x86_64-pc-windows-msvc, toolchain: stable, os: windows-latest }
- { target: x86_64-pc-windows-msvc, toolchain: beta, os: windows-latest }
- { target: x86_64-pc-windows-msvc, toolchain: nightly, os: windows-latest }
# aarch64
- { target: aarch64-apple-darwin, toolchain: "1.60", os: macos-latest }
- { target: aarch64-apple-darwin, toolchain: stable, os: macos-latest }
- { target: aarch64-apple-darwin, toolchain: beta, os: macos-latest }
- { target: aarch64-apple-darwin, toolchain: nightly, os: macos-latest }
# wasm32
- { target: wasm32-wasi, toolchain: "1.60", os: ubuntu-latest, wasmtime: v5.0.0 }
- { target: wasm32-wasi, toolchain: stable, os: ubuntu-latest, wasmtime: v5.0.0 }
Expand Down
2 changes: 1 addition & 1 deletion tests/all_tests/t_f32x4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ fn impl_f32x4_sin_cos() {
let actual_arr: [f32; 4] = cast(vals);
let actual = actual_arr[i];
assert!(
(actual - expected).abs() < 0.00000006,
(actual - expected).abs() < 0.0000002,
"Wanted {name}({angle}) to be {expected} but got {actual}",
name = name,
angle = angle,
Expand Down
2 changes: 1 addition & 1 deletion tests/all_tests/t_f32x8.rs
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ fn impl_f32x8_sin_cos() {
let actual_arr: [f32; 8] = cast(vals);
let actual = actual_arr[i];
assert!(
(actual - expected).abs() < 0.00000006,
(actual - expected).abs() < 0.0000002,
"Wanted {name}({angle}) to be {expected} but got {actual}",
name = name,
angle = angle,
Expand Down

0 comments on commit fff0504

Please sign in to comment.