Skip to content

Commit b53cd36

Browse files
Merge branch 'jbr-run-ci-on-wasm-target' into fix-wasm
2 parents 7d7af99 + c461a53 commit b53cd36

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

Diff for: .github/workflows/ci.yml

+29
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,35 @@ jobs:
160160
- name: test
161161
run: cross test --all --features unstable --target ${{ matrix.target }}
162162

163+
check_wasm:
164+
name: Check wasm targets
165+
runs-on: ubuntu-latest
166+
strategy:
167+
matrix:
168+
rust: [nightly, beta, stable]
169+
170+
steps:
171+
- uses: actions/checkout@master
172+
173+
- name: Install rust with wasm32-unknown-unknown
174+
uses: actions-rs/toolchain@v1
175+
with:
176+
toolchain: ${{ matrix.rust }}
177+
target: wasm32-unknown-unknown
178+
override: true
179+
180+
- name: Cache cargo registry
181+
uses: actions/cache@v2
182+
with:
183+
path: ~/.cargo/registry
184+
key: wasm32-${{ matrix.rust }}-cargo-registry-${{ hashFiles('**/Cargo.toml') }}
185+
186+
- name: check
187+
uses: actions-rs/cargo@v1
188+
with:
189+
command: check
190+
args: --target wasm32-unknown-unknown
191+
163192
check_fmt_and_docs:
164193
name: Checking fmt and docs
165194
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)