From cab9391a997527fb459aa144b97b13d458285e38 Mon Sep 17 00:00:00 2001 From: James Hiew Date: Thu, 5 Dec 2024 13:56:24 +0000 Subject: [PATCH] ci: check wasm --- .github/workflows/ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 81e8f64..94236fd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,3 +55,15 @@ jobs: sudo apt-get install -y g++ pkg-config libx11-dev libasound2-dev libudev-dev libxkbcommon-x11-0 libwayland-dev libxkbcommon-dev - uses: Swatinem/rust-cache@v2 - run: cargo check --all-targets + wasm: + runs-on: ubuntu-24.04 + needs: lint + steps: + - uses: actions/checkout@v4 + - run: rustup show + - run: rustup target add wasm32-unknown-unknown + - name: Install system packages needed by Bevy + run: | + sudo apt-get install -y g++ pkg-config libx11-dev libasound2-dev libudev-dev libxkbcommon-x11-0 libwayland-dev libxkbcommon-dev + - uses: Swatinem/rust-cache@v2 + - run: RUSTFLAGS="--cfg web_sys_unstable_apis" cargo clippy --all-targets --target wasm32-unknown-unknown