Skip to content

Merge pull request #199 from sval-rs/cargo/2.13.1 #508

Merge pull request #199 from sval-rs/cargo/2.13.1

Merge pull request #199 from sval-rs/cargo/2.13.1 #508

Workflow file for this run

name: buffer
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
check:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
- name: Install Rust toolchain
run: rustup default nightly
- name: Install cargo-hack
run: cargo install cargo-hack
- name: Powerset
working-directory: ./buffer
run: cargo hack test --feature-powerset
- name: Minimal Versions
working-directory: ./buffer
run: cargo hack test --feature-powerset -Z minimal-versions
bench:
name: Bench
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
- name: Install Rust toolchain
run: rustup default nightly
- name: Install cargo-hack
run: cargo install cargo-hack
- name: Powerset
working-directory: ./buffer
run: cargo hack bench --feature-powerset --no-run
embedded:
name: Build (embedded)
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
- name: Install Rust toolchain
run: |
rustup default nightly
rustup target add thumbv6m-none-eabi
- name: Install cargo-hack
run: cargo install cargo-hack
- name: Powerset
working-directory: ./buffer
run: cargo hack check --each-feature --exclude-features std,alloc -Z avoid-dev-deps --target thumbv6m-none-eabi
miri:
name: Test (Miri)
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
- name: Install Miri
run: |
rustup toolchain install nightly --component miri
cargo +nightly miri setup
- name: Default features
working-directory: ./buffer
run: cargo +nightly miri test --lib
- name: No features
working-directory: ./buffer
run: cargo +nightly miri test --lib --no-default-features