Skip to content
This repository was archived by the owner on Jun 18, 2021. It is now read-only.

Commit 546757c

Browse files
committed
Add wasm to CI
1 parent 9ed9987 commit 546757c

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/ci.yml

+12-6
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,22 @@ jobs:
1212
strategy:
1313
matrix:
1414
os: [macos-10.15, ubuntu-18.04, windows-2019]
15+
wasm: [true, false]
1516
include:
1617
- os: macos-10.15
17-
CHECK_COMMAND: cargo check
18-
TEST_COMMAND: cargo test --no-run
18+
wasm: false
19+
CHECK_COMMAND: cargo check --all-targets
20+
TEST_COMMAND: cargo test --all-targets --no-run
1921
- os: ubuntu-18.04
20-
CHECK_COMMAND: cargo check
21-
TEST_COMMAND: cargo test --no-run
22+
wasm: false
23+
CHECK_COMMAND: cargo check --all-targets
24+
TEST_COMMAND: cargo test --all-targets --no-run
2225
- os: windows-2019
23-
CHECK_COMMAND: rustup default stable-msvc; cargo check
24-
TEST_COMMAND: rustup default stable-msvc; cargo test --no-run
26+
wasm: false
27+
CHECK_COMMAND: rustup default stable-msvc && cargo check --all-targets
28+
TEST_COMMAND: rustup default stable-msvc && cargo test --all-targets --no-run
29+
- wasm: true
30+
CHECK_COMMAND: rustup update && rustup target add wasm32-unknown-unknown && RUSTFLAGS=--cfg=web_sys_unstable_apis cargo check --all-targets --target=wasm32-unknown-unknown
2531
steps:
2632
- uses: actions/checkout@v2
2733
- name: cargo check

0 commit comments

Comments
 (0)