Test CI #16
Workflow file for this run
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: Build & Test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: | |
- toolchain: stable | |
- toolchain: 1.63.0 | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust.toolchain }} | |
components: clippy, rustfmt | |
- name: Pin deps for MSRV | |
if: matrix.rust.toolchain == '1.63.0' | |
run: | | |
cargo update -p zstd-sys --precise "2.0.8+zstd.1.5.5" | |
cargo update -p time --precise "0.3.20" | |
cargo update -p home --precise "0.5.5" | |
cargo update -p tokio --precise "1.37.0" | |
- name: Lint all targets | |
run: cargo clippy | |
- name: Format | |
run: cargo fmt -- --check | |
- name: Build with default features | |
run: cargo build --verbose | |
- name: Check release build on Rust ${{ matrix.rust.toolchain }} | |
run: cargo check --release --verbose --color always | |
- name: Test | |
run: cargo test --verbose |