Skip to content

Commit

Permalink
ci: add build task to check it builds for wasm (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
han0110 authored Nov 8, 2023
1 parent 6691f02 commit fedd7a8
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,29 @@ jobs:

- name: Run clippy
run: cargo clippy --all --all-features --all-targets -- -D warnings

build:
name: Build target ${{ matrix.target }}
runs-on: ubuntu-latest
strategy:
matrix:
target:
- wasm32-wasi
steps:
- uses: actions/checkout@v2

- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
override: false

- name: Add target
run: rustup target add ${{ matrix.target }}

- uses: Swatinem/rust-cache@v1
with:
cache-on-failure: true

- name: Run build
run: cargo build --target ${{ matrix.target }}

0 comments on commit fedd7a8

Please sign in to comment.