-
Notifications
You must be signed in to change notification settings - Fork 285
57 lines (53 loc) · 1.39 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: ci
on:
push:
branches:
- master
pull_request:
jobs:
test:
name: test
runs-on: ${{ matrix.os }}
strategy:
matrix:
build: [msrv, stable, nightly, macos, win-msvc]
include:
- build: msrv
os: ubuntu-latest
rust: 1.65.0
- build: stable
os: ubuntu-latest
rust: stable
- build: nightly
os: ubuntu-latest
rust: nightly
- build: macos
os: macOS-latest
rust: stable
- build: win-msvc
os: windows-2019
rust: stable
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- name: Build System Info
run: rustc --version
- name: tests with default feature
run: cargo test
- name: tests without the default feature
run: cargo test --no-default-features
- name: Run basic example
run: cargo run --example basic
wasm:
name: wasm
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- run: cd docs/playground && cargo test
- run: cd docs/playground && wasm-pack test --headless --chrome
- run: cd docs/playground && wasm-pack test --headless --firefox