From f0f60128713b9d7aceb9032f490ead5bfd227481 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Tue, 23 Mar 2021 11:56:43 +0100 Subject: [PATCH] CI: check if the WASM example compiles --- .github/workflows/ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ece8c47c..6db4e0f5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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]