Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,25 @@ jobs:
- name: cargo test
run: cargo test --workspace --locked --all-features --no-fail-fast --target ${{ matrix.platform.target }}

test-stable-libm:
name: cargo test (libm, no_std)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: install stable toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.RUST_STABLE_VER }}

- name: restore cache
uses: Swatinem/rust-cache@v2
with:
save-if: ${{ github.event_name != 'merge_group' }}

- name: cargo test
run: cargo test -p fearless_simd_tests --locked --no-default-features --features libm --no-fail-fast

test-sde:
name: cargo test in an emulator
runs-on: ${{ matrix.platform.os }}
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ clippy.wildcard_dependencies = "warn"
clippy.uninlined_format_args = "allow"

[workspace.dependencies]
fearless_simd = { path = "fearless_simd" }
fearless_simd = { path = "fearless_simd", default-features = false }
fearless_simd_dev_macros = { path = "fearless_simd_dev_macros" }
proc-macro2 = "1.0.95"
syn = { version = "2.0.101", features = ["full", "extra-traits"] }
Expand Down
7 changes: 6 additions & 1 deletion fearless_simd_tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ path = "tests/mod.rs"
[lints]
workspace = true

[features]
default = ["std"]
std = ["fearless_simd/std"]
libm = ["fearless_simd/libm"]

[dependencies]
fearless_simd = { workspace = true, features = ["std"] }
fearless_simd = { workspace = true }
fearless_simd_dev_macros = { workspace = true }
1 change: 1 addition & 0 deletions fearless_simd_tests/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ fn generic_cast<S: Simd>(x: S::f32s) -> S::u32s {
dead_code,
reason = "The `UNSUPPORTED_LEVEL_MESSAGE` is only used in some cfgs."
)]
#[cfg(any(feature = "std", target_arch = "wasm32"))]
#[test]
fn supports_highest_level() {
const UNSUPPORTED_LEVEL_MESSAGE: &str = "This means that some of the other tests in this run may be false positives, that is, they have been marked as succeeding even though they would actually fail if they could run.\n\
Expand Down
Loading