Skip to content

Commit fcb595c

Browse files
committed
ci with and without features
1 parent 812b6e0 commit fcb595c

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/ci.yml

+10-9
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
strategy:
1717
matrix:
1818
toolchain: ["stable"]
19+
features: ["", "--features serde"]
1920

2021
steps:
2122
- uses: actions/checkout@v4
@@ -35,24 +36,24 @@ jobs:
3536
run: cargo install cargo-no-std-check
3637

3738
- name: Build
38-
run: cargo build --features serde --verbose
39+
run: cargo build --verbose ${{ matrix.features }}
3940
- name: Build-32bit
40-
run: cargo build --features serde --verbose --target i686-unknown-linux-musl
41+
run: cargo build --verbose --target i686-unknown-linux-musl ${{ matrix.features }}
4142
- name: Build-wasm
42-
run: cargo build --features serde --verbose --target wasm32v1-none
43+
run: cargo build --verbose --target wasm32v1-none ${{ matrix.features }}
4344

4445
- name: Test
45-
run: cargo test --features serde --verbose
46+
run: cargo test --verbose ${{ matrix.features }}
4647
- name: Test-32bit
47-
run: cargo test --features serde --verbose --target i686-unknown-linux-musl
48+
run: cargo test --verbose --target i686-unknown-linux-musl ${{ matrix.features }}
4849
- name: Check-wasm
49-
run: cargo check --features serde --verbose --target wasm32v1-none
50+
run: cargo check --verbose --target wasm32v1-none ${{ matrix.features }}
5051

5152
- name: Clippy
52-
run: cargo clippy --features serde -- -D warnings --verbose
53+
run: cargo clippy -- -D warnings --verbose ${{ matrix.features }}
5354

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

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

0 commit comments

Comments
 (0)