Remove crossbeam feature, switch to flume for all #118
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
name: Rust | |
on: | |
push: | |
branches: | |
- 'master' | |
- 'staging' | |
pull_request: | |
env: | |
RUST_BACKTRACE: full | |
RUST_LOG: debug | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/cache@v3 | |
with: | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
- name: Cargo Test | |
timeout-minutes: 20 | |
run: | | |
cargo test --all --no-fail-fast | |
lint: | |
name: Format and Clippy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/cache@v3 | |
with: | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
- name: Cargo Check | |
run: | | |
cargo check --all-targets | |
- name: Cargo Format | |
run: | | |
cargo fmt --all --check | |
- name: Cargo clippy | |
run: | | |
cargo clippy --all-targets --all -- -D warnings | |