-
Notifications
You must be signed in to change notification settings - Fork 97
44 lines (39 loc) · 1.31 KB
/
wasm-compatibility.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
name: Wasm compatibility
on:
push:
branches: [develop, production]
paths:
- ".github/workflows/wasm-compatibility.yml"
- ".github/actions/**"
- "**.rs" # Include all rust files
- "**Cargo.toml" # Include all Cargo.toml files
- "**Cargo.lock" # Include all Cargo.lock files
- "!client/bindings/**" # Exclude all bindings
pull_request:
branches: [develop, production]
paths:
- ".github/workflows/wasm-compatibility.yml"
- ".github/actions/**"
- "**.rs" # Include all rust files
- "**Cargo.toml" # Include all Cargo.toml files
- "**Cargo.lock" # Include all Cargo.lock files
- "!client/bindings/**" # Exclude all bindings
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install stable rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
override: true
- name: Cargo check
uses: actions-rs/cargo@v1
with:
command: check
args: --release --target=wasm32-unknown-unknown --manifest-path client/Cargo.toml --no-default-features --features tls,message_interface