Skip to content

ci with and without features #158

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 11, 2025
Merged
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: 10 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
strategy:
matrix:
toolchain: ["stable"]
features: ["", "--features serde"]

steps:
- uses: actions/checkout@v4
Expand All @@ -35,24 +36,24 @@ jobs:
run: cargo install cargo-no-std-check

- name: Build
run: cargo build --features serde --verbose
run: cargo build --verbose ${{ matrix.features }}
- name: Build-32bit
run: cargo build --features serde --verbose --target i686-unknown-linux-musl
run: cargo build --verbose --target i686-unknown-linux-musl ${{ matrix.features }}
- name: Build-wasm
run: cargo build --features serde --verbose --target wasm32v1-none
run: cargo build --verbose --target wasm32v1-none ${{ matrix.features }}

- name: Test
run: cargo test --features serde --verbose
run: cargo test --verbose ${{ matrix.features }}
- name: Test-32bit
run: cargo test --features serde --verbose --target i686-unknown-linux-musl
run: cargo test --verbose --target i686-unknown-linux-musl ${{ matrix.features }}
- name: Check-wasm
run: cargo check --features serde --verbose --target wasm32v1-none
run: cargo check --verbose --target wasm32v1-none ${{ matrix.features }}

- name: Clippy
run: cargo clippy --features serde -- -D warnings --verbose
run: cargo clippy ${{ matrix.features }} -- -D warnings --verbose

- name: Miri
run: cargo +nightly miri test --features serde --verbose
run: cargo +nightly miri test --verbose ${{ matrix.features }}

- name: NoStd
run: cargo +nightly no-std-check --features serde
run: cargo +nightly no-std-check ${{ matrix.features }}