Skip to content

Commit 870b375

Browse files
committed
ci: add steps to check ngx with several plausible feature combos
1 parent 5ecb7a8 commit 870b375

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,28 @@ jobs:
6767
components: rustfmt, clippy
6868
toolchain: ${{ matrix.rust-version }}
6969

70-
- name: build
70+
- name: build (all targets, all features)
7171
id: build
7272
run: cargo build --workspace --all-targets --all-features
7373

74-
- name: run clippy
74+
- name: check ngx, no default features (no_std)
75+
run: cargo check -p ngx --no-default-features --features vendored
76+
77+
- name: check ngx, alloc
78+
run: cargo check -p ngx --no-default-features --features vendored,alloc
79+
80+
- name: check ngx, std
81+
run: cargo check -p ngx --no-default-features --features vendored,std
82+
83+
- name: check ngx, alloc + serde
84+
run: cargo check -p ngx --no-default-features --features vendored,alloc,serde
85+
86+
- name: clippy
7587
# always run if build succeeds
7688
if: ${{ !cancelled() && steps.build.outcome == 'success' }}
7789
run: cargo clippy --workspace --all-targets --all-features -- -Dwarnings
7890

79-
- name: run tests
91+
- name: test
8092
# always run if build succeeds
8193
if: ${{ !cancelled() && steps.build.outcome == 'success' }}
8294
run: cargo test --workspace --all-features

0 commit comments

Comments
 (0)