Skip to content

Commit

Permalink
chore(ci): Check wasm builds
Browse files Browse the repository at this point in the history
Fixes #571
  • Loading branch information
epage committed Feb 19, 2025
1 parent fb78b72 commit 7d208aa
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
permissions:
contents: none
name: CI
needs: [test, msrv, lockfile, docs, rustfmt, clippy]
needs: [test, wasm, msrv, lockfile, docs, rustfmt, clippy]
runs-on: ubuntu-latest
if: "always()"
steps:
Expand Down Expand Up @@ -67,6 +67,28 @@ jobs:
- uses: taiki-e/install-action@cargo-hack
- name: Default features
run: cargo hack check --feature-powerset --locked --rust-version --ignore-private --workspace --all-targets
wasm:
name: "Check wasm"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
build: [wasm, wasm-wasi]
include:
- build: wasm
target: wasm32-unknown-unknown
- build: wasm-wasi
target: wasm32-wasip1
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: ${{ matrix.target }}
- name: Default features
run: cargo check -p typos -p typos-dict
lockfile:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 7d208aa

Please sign in to comment.