Skip to content

update

update #13

Workflow file for this run

name: CI
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- os: macos-latest
target: aarch64-apple-darwin
- os: windows-latest
target: x86_64-pc-windows-msvc
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Cache cargo registry and git dependencies
uses: Swatinem/rust-cache@v2
with:
key: ${{ matrix.target }}
- name: Run host tests (no webusb)
run: cargo test --target ${{ matrix.target }} --no-default-features
- name: Run host tests with bugreport-analysis
run: cargo test --target ${{ matrix.target }} --no-default-features --features bugreport-analysis
build-wasm:
name: Build WASM
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
- name: Cache cargo
uses: Swatinem/rust-cache@v2
with:
key: wasm
- name: Build WASM (release)
run: cargo build --release --target wasm32-unknown-unknown