Skip to content

Commit 9bc27ed

Browse files
committed
Run WASM for multiple toolchains
WASM is supported by Rust 1.30. We can therefore run the WASM tests on any all the toolchains except MSRV (1.29.0). This has benefit of catching nightly/beta issues before they get to stable. Done as a separate CI job since it is conceptually different to the `Tests` job. Run WASM for nightly, beta, and stable toolchains.
1 parent fa0ff8a commit 9bc27ed

File tree

1 file changed

+25
-15
lines changed

1 file changed

+25
-15
lines changed

.github/workflows/rust.yml

+25-15
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,7 @@ jobs:
3636
runs-on: ubuntu-latest
3737
strategy:
3838
matrix:
39-
include:
40-
- rust: stable
41-
env:
42-
DO_FEATURE_MATRIX: true
43-
DO_WASM: true
44-
- rust: beta
45-
env:
46-
DO_FEATURE_MATRIX: true
47-
- rust: nightly
48-
env:
49-
DO_FEATURE_MATRIX: true
50-
- rust: 1.29.0
51-
env:
52-
DO_FEATURE_MATRIX: true
39+
rust: [stable, beta, nightly, 1.29.0]
5340
steps:
5441
- name: Checkout Crate
5542
uses: actions/checkout@v2
@@ -63,6 +50,29 @@ jobs:
6350
if: matrix.rust == '1.29.0'
6451
run: cargo generate-lockfile --verbose && cargo update -p cc --precise "1.0.41" --verbose
6552
- name: Running cargo
66-
env: ${{ matrix.env }}
53+
env:
54+
DO_FEATURE_MATRIX: true
6755
run: ./contrib/test.sh
6856

57+
WASM:
58+
name: WASM
59+
runs-on: ubuntu-latest
60+
strategy:
61+
matrix:
62+
rust: [stable, beta, nightly] # WASM requires Rust 1.30
63+
steps:
64+
- name: Checkout Crate
65+
uses: actions/checkout@v2
66+
- name: Install clang
67+
run: sudo apt-get -y clang-9
68+
- name: Checkout Toolchain
69+
uses: actions-rs/toolchain@v1
70+
with:
71+
profile: minimal
72+
toolchain: nightly
73+
override: true
74+
components: rust-src
75+
- name: Running WASM tests
76+
env:
77+
DO_WASM: true
78+
run: ./contrib/test.sh

0 commit comments

Comments
 (0)