Skip to content

Commit b522559

Browse files
committed
Stub crate contents on unsupported platforms
Allow successful check and build even on unsupported platforms
1 parent 65749de commit b522559

File tree

18 files changed

+231
-287
lines changed

18 files changed

+231
-287
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -38,28 +38,13 @@ jobs:
3838
- name: Check crates
3939
run: cargo clippy --workspace --all-targets --all-features
4040
- name: Check crates (wasm32-unknown-unknown)
41-
run: |
42-
cargo clippy --target wasm32-unknown-unknown \
43-
-p cyclers \
44-
-p cyclers-http \
45-
-p cyclers-webrtc \
46-
-p cyclers-webtrans \
47-
--all-targets --all-features
41+
run: cargo clippy --target wasm32-unknown-unknown --all-targets --all-features
4842
- name: Check crates (wasm32-wasip2)
49-
run: |
50-
cargo clippy --target wasm32-wasip2 \
51-
-p cyclers \
52-
-p cyclers-http \
53-
-p cyclers-terminal \
54-
--all-targets --all-features
43+
run: cargo clippy --target wasm32-wasip2 --all-targets --all-features
5544
- name: Check examples
5645
run: cargo clippy --manifest-path examples/Cargo.toml --workspace --all-targets --all-features
5746
- name: Check examples (wasm32-wasip2)
58-
run: |
59-
cargo clippy --target wasm32-wasip2 --manifest-path examples/Cargo.toml \
60-
-p example-http-wiki \
61-
-p example-terminal-echo \
62-
--all-targets --all-features
47+
run: cargo clippy --target wasm32-wasip2 --manifest-path examples/Cargo.toml --all-targets --all-features
6348
- name: Uncomment all in .rustfmt.toml
6449
run: sed -r 's/^# *//g' -i .rustfmt.toml
6550
- name: rustfmt crates
@@ -127,20 +112,9 @@ jobs:
127112
- name: Test crates
128113
run: cargo test --workspace --all-targets --all-features
129114
- name: Test crates (wasm32-unknown-unknown)
130-
run: |
131-
cargo test --target wasm32-unknown-unknown \
132-
-p cyclers \
133-
-p cyclers-http \
134-
-p cyclers-webrtc \
135-
-p cyclers-webtrans \
136-
--all-targets --all-features
115+
run: cargo test --target wasm32-unknown-unknown --all-targets --all-features
137116
- name: Test crates (wasm32-wasip2)
138-
run: |
139-
cargo test --target wasm32-wasip2 \
140-
-p cyclers \
141-
-p cyclers-http \
142-
-p cyclers-terminal \
143-
--all-targets --all-features
117+
run: cargo test --target wasm32-wasip2 --all-targets --all-features
144118
- name: Test examples
145119
if: ${{ matrix.toolchain != 'nightly' }}
146120
run: cargo test --manifest-path examples/Cargo.toml --workspace --all-targets --all-features

0 commit comments

Comments
 (0)