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

Commit cb9bf7e

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

File tree

2 files changed

+22
-9
lines changed

2 files changed

+22
-9
lines changed

.github/workflows/ci.yml

+16-6
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,29 @@ on:
99
jobs:
1010
build:
1111
runs-on: ${{ matrix.os }}
12+
env:
13+
RUSTFLAGS: ${{ matrix.RUSTFLAGS }}
1214
strategy:
1315
matrix:
1416
os: [macos-10.15, ubuntu-18.04, windows-2019]
17+
wasm: [true, false]
1518
include:
1619
- os: macos-10.15
17-
CHECK_COMMAND: cargo check
18-
TEST_COMMAND: cargo test --no-run
20+
wasm: false
21+
CHECK_COMMAND: cargo check --all-targets
22+
TEST_COMMAND: cargo test --all-targets --no-run
1923
- os: ubuntu-18.04
20-
CHECK_COMMAND: cargo check
21-
TEST_COMMAND: cargo test --no-run
24+
wasm: false
25+
CHECK_COMMAND: cargo check --all-targets
26+
TEST_COMMAND: cargo test --all-targets --no-run
2227
- os: windows-2019
23-
CHECK_COMMAND: rustup default stable-msvc; cargo check
24-
TEST_COMMAND: rustup default stable-msvc; cargo test --no-run
28+
wasm: false
29+
CHECK_COMMAND: rustup default stable-msvc && cargo check --all-targets
30+
TEST_COMMAND: rustup default stable-msvc && cargo test --all-targets --no-run
31+
- wasm: true
32+
CHECK_COMMAND: rustup target add wasm32-unknown-unknown && cargo check --all-targets --target=wasm32-unknown-unknown
33+
TEST_COMMAND: rustup target add wasm32-unknown-unknown && cargo test --all-targets --no-run --target=wasm32-unknown-unknown
34+
RUSTFLAGS: --cfg=web_sys_unstable_apis
2535
steps:
2636
- uses: actions/checkout@v2
2737
- name: cargo check

bors.toml

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
status = [
2-
"build (macos-10.15)",
3-
"build (ubuntu-18.04)",
4-
"build (windows-2019)",
2+
"build (macos-10.15, true)",
3+
"build (macos-10.15, false)",
4+
"build (ubuntu-18.04, true)",
5+
"build (ubuntu-18.04, false)",
6+
"build (windows-2019, true)",
7+
"build (windows-2019, false)",
58
"docs",
69
]
710

0 commit comments

Comments
 (0)