Skip to content

(breaking change) Add std and alloc features #156

(breaking change) Add std and alloc features

(breaking change) Add std and alloc features #156

name: Build and test
on:
push:
branches:
- master
pull_request:
jobs:
build_and_test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
rust: [nightly, stable]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
targets: x86_64-pc-windows-gnu, wasm32-unknown-unknown
- name: Run cargo check
run: cargo check --all --bins --examples --tests --all-features
- name: Run cargo check for WASM
run: cargo check --all --all-features --target wasm32-unknown-unknown
- name: Run cargo check (without dev-dependencies to catch missing feature flags)
if: startsWith(matrix.rust, 'nightly')
run: cargo check -Z features=dev_dep
- name: Run cargo test
run: cargo test