From d148bb4e15c7d978e3b45e53067270da0b5f7e3b Mon Sep 17 00:00:00 2001 From: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Date: Wed, 7 Jun 2023 19:45:01 +0200 Subject: [PATCH] ci: add WASM job --- .github/workflows/ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eb060da772..9e6b06de63 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,9 +25,21 @@ jobs: # "skip" a UI test because of differing output - run: rm crates/sol-types/tests/ui/type.* if: ${{ matrix.rust }} == '1.65' + - uses: Swatinem/rust-cache@v2 - name: test run: cargo test --workspace ${{ matrix.flags }} + wasm: + name: check WASM + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: dtolnay/rust-toolchain@stable + with: + targets: wasm32-unknown-unknown + - name: check + run: cargo check --workspace --target wasm32-unknown-unknown + feature-checks: name: feature checks runs-on: ubuntu-latest