Skip to content

Interprocess

Interprocess #204

Workflow file for this run

name: Rust
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
MSRV: "1.65"
RUST_BACKTRACE: 1
RUSTFLAGS: -Dwarnings
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@stable
- uses: swatinem/rust-cache@v2
- name: cargo fmt
run: cargo fmt --all -- --check
- name: cargo clippy
run: cargo clippy --locked --workspace --all-targets --all-features
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@stable
- uses: swatinem/rust-cache@v2
- name: cargo test
run: cargo test --locked --workspace --all-features --bins --tests --examples
wasm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@stable
with:
target: wasm32-unknown-unknown
override: true
- uses: swatinem/rust-cache@v2
- name: cargo test
run: cargo build --locked --no-default-features --features flume-transport --target wasm32-unknown-unknown
msrv:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.MSRV }}
- uses: swatinem/rust-cache@v2
- name: cargo check
run: cargo +$MSRV check --locked --workspace --all-features --all-targets
minimal_crates:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@nightly
- uses: swatinem/rust-cache@v2
- name: cargo check
run: |
rm -f Cargo.lock
cargo +nightly check -Z minimal-versions --workspace --all-features --lib --bins