Skip to content

Commit

Permalink
ci: check wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshiew committed Dec 5, 2024
1 parent 9e189b7 commit cab9391
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit cab9391

Please sign in to comment.