Merge pull request #44 from orxfun/collection-and-concurrency-support #4
This file contains hidden or 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
name: Rust | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
toolchain: ["stable"] | |
features: ["", "--features serde"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install toolchain | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
- name: Install 32bit target | |
run: rustup target add i686-unknown-linux-musl | |
- name: Install wasm target | |
run: rustup target add wasm32v1-none | |
- name: Install miri | |
run: rustup component add --toolchain nightly-x86_64-unknown-linux-gnu miri | |
- name: Install no-std-check | |
run: cargo install cargo-no-std-check | |
- name: Build | |
run: cargo build --verbose ${{ matrix.features }} | |
- name: Build-32bit | |
run: cargo build --verbose --target i686-unknown-linux-musl ${{ matrix.features }} | |
- name: Build-wasm | |
run: cargo build --verbose --target wasm32v1-none ${{ matrix.features }} | |
- name: Test | |
run: cargo test --verbose ${{ matrix.features }} | |
- name: Test-32bit | |
run: cargo test --verbose --target i686-unknown-linux-musl ${{ matrix.features }} | |
- name: Check-wasm | |
run: cargo check --verbose --target wasm32v1-none ${{ matrix.features }} | |
- name: Clippy | |
run: cargo clippy ${{ matrix.features }} -- -D warnings --verbose | |
- name: Miri | |
run: cargo +nightly miri test --verbose ${{ matrix.features }} | |
- name: NoStd | |
run: cargo +nightly no-std-check ${{ matrix.features }} |