Skip to content

Commit ba2a2a9

Browse files
committed
Test --all-features in CI
1 parent bea7960 commit ba2a2a9

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,20 +125,24 @@ jobs:
125125
126126
# build for WebGPU
127127
cargo clippy --target ${{ matrix.target }} -p wgpu --tests --features glsl,spirv
128+
cargo doc --target ${{ matrix.target }} -p wgpu --no-deps --features glsl,spirv
128129
129130
# build for WebGL
130131
cargo clippy --target ${{ matrix.target }} -p wgpu --tests --features webgl,glsl,spirv
132+
cargo doc --target ${{ matrix.target }} -p wgpu --no-deps --features webgl,glsl,spirv
131133
132-
# build docs
133-
cargo doc --target ${{ matrix.target }} -p wgpu --no-deps --features glsl,spirv
134+
# all features
135+
cargo clippy --target ${{ matrix.target }} -p wgpu-hal --tests --all-features
136+
cargo clippy --target ${{ matrix.target }} -p wgpu --tests --all-features
137+
cargo doc --target ${{ matrix.target }} -p wgpu --no-deps --all-features
134138
135139
- name: check em
136140
if: matrix.kind == 'em'
137141
shell: bash
138142
run: |
139143
set -e
140144
141-
# build for Emscripten/WebGL
145+
# build for Emscripten
142146
cargo clippy --target ${{ matrix.target }} -p wgpu -p wgpu-hal --no-default-features
143147
144148
# build cube example
@@ -147,6 +151,10 @@ jobs:
147151
# build raw-gles example
148152
cargo clippy --target ${{ matrix.target }} --example raw-gles
149153
154+
# all features
155+
cargo clippy --target ${{ matrix.target }} -p wgpu-hal --all-features
156+
cargo clippy --target ${{ matrix.target }} -p wgpu --all-features
157+
150158
- name: check native
151159
if: matrix.kind == 'native'
152160
shell: bash
@@ -159,8 +167,9 @@ jobs:
159167
# Check with all features.
160168
# (But watch out for backend-selection features in wgpu-core; some of
161169
# those only build on the right platforms.)
162-
cargo clippy --target ${{ matrix.target }} -p wgpu -p wgpu-info -p player --tests --all-features
170+
cargo clippy --target ${{ matrix.target }} -p wgpu-hal --tests --all-features
163171
cargo clippy --target ${{ matrix.target }} -p wgpu-core --tests --all-features
172+
cargo clippy --target ${{ matrix.target }} -p wgpu -p wgpu-info -p player --tests --all-features
164173
165174
# build docs
166175
# (Watch out for backend-selection features in wgpu-core; some of

0 commit comments

Comments
 (0)