-
Notifications
You must be signed in to change notification settings - Fork 19
63 lines (48 loc) · 1.53 KB
/
test.yaml
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
58
59
60
61
62
63
name: Rust CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test-std:
name: Test with default features on stable Rust
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install stable Rust toolchain & Binaryen
run: |
rustup update stable
rustup update nightly
rustup target add wasm32-unknown-unknown
sudo apt-get install -y binaryen wabt
- name: Build wasm
run: ./examples/rust/build.sh
- name: Build (stable)
run: cargo +stable build --workspace
- name: Run tests (stable)
run: cargo +stable test --workspace
- name: Run MVP testsuite
run: cargo +stable test-mvp
test-no-std:
name: Test without default features on nightly Rust
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install nightly Rust toolchain & Binaryen
run: |
rustup update nightly
rustup target add wasm32-unknown-unknown
sudo apt-get install -y binaryen wabt
- name: Build wasm
run: ./examples/rust/build.sh
- name: Build (nightly, no default features)
run: cargo +nightly build --workspace --no-default-features
- name: Run tests (nightly, no default features)
run: cargo +nightly test --workspace --no-default-features
- name: Run MVP testsuite (nightly)
run: cargo +nightly test-mvp