CI: check if the WASM example compiles
This commit is contained in:
parent
15d5b234ed
commit
f0f6012871
1 changed files with 25 additions and 0 deletions
25
.github/workflows/ci.yml
vendored
25
.github/workflows/ci.yml
vendored
|
@ -54,6 +54,31 @@ jobs:
|
|||
command: clippy
|
||||
args: --all-targets -- -D warnings
|
||||
|
||||
check-wasm:
|
||||
name: Check if WASM support compiles
|
||||
needs: [clippy]
|
||||
|
||||
steps:
|
||||
- name: Checkout the repo
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
profile: minimal
|
||||
override: true
|
||||
|
||||
- name: Change the directory
|
||||
run: |
|
||||
cd matrix_sdk/examples/wasm_command_bot
|
||||
|
||||
- name: Check
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: check
|
||||
args: --target wasm32-unknown-unknown
|
||||
|
||||
test:
|
||||
name: ${{ matrix.name }}
|
||||
needs: [clippy]
|
||||
|
|
Loading…
Reference in a new issue