-
Notifications
You must be signed in to change notification settings - Fork 24
32 lines (32 loc) · 868 Bytes
/
check.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
name: check
permissions:
contents: read
on: [push, pull_request]
jobs:
check-x86:
runs-on: ubuntu-latest
name: check-x86
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- uses: tecolicom/actions-use-apt-tools@v1
with:
tools: binaryen
- run: cargo check
- run: cargo test
check-wasm:
runs-on: ubuntu-latest
name: check-wasm
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
- uses: Swatinem/rust-cache@v2
with:
workspaces: frontend
- uses: tecolicom/actions-use-apt-tools@v1
with:
tools: binaryen
- run: cargo check --manifest-path=frontend/Cargo.toml --target=wasm32-unknown-unknown