Update CI; Test MSRV #1318
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push, pull_request] | |
name: CI | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
toolchain: | |
- stable | |
# msrv | |
- 1.56.0 | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- uses: dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248 # master | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
# build | |
- run: cargo build --all | |
# test | |
- run: cargo test --all | |
# run examples | |
- run: cargo run --example 2>&1 | grep -P ' ' | awk '{print $1}' | xargs -i cargo run --example {} | |
fmt-clippy-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248 # master | |
with: | |
toolchain: stable | |
- run: cargo clippy -- -D warnings | |
- run: cargo fmt --all -- --check | |
ensure_no_std: | |
name: Ensure no_std | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- uses: dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248 # master | |
with: | |
toolchain: nightly | |
- run: cd ensure_no_std && cargo build --release --target thumbv7em-none-eabihf | |
ensure_wasm: | |
name: Ensure wasm | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- uses: dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248 # master | |
with: | |
toolchain: nightly | |
- uses: jetli/[email protected] | |
with: | |
version: 'latest' | |
- run: cd ensure_wasm && wasm-pack build --target web && wasm-pack test --node |