Skip to content

github actions with multiple rust versions #5

github actions with multiple rust versions

github actions with multiple rust versions #5

Workflow file for this run

name: Rust
on:
push:
branches:
- master
- feature/rust-1.69
pull_request: {}
env:
CARGO_TERM_COLOR: always
jobs:
build-test:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.69.0 # new release
- 1.63.0 # debian
- 1.57.0 # MSRV
features:
- ""
- default
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
profile: minimal
override: true
components: rustfmt, clippy
- name: Build
run: cargo build --no-default-features --features ${{ matrix.features }}
- name: Run tests
run: cargo test --no-default-features --features ${{ matrix.features }}
- name: Clippy
run: cargo clippy -- -D warnings
fmt:
name: Rust fmt
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Rust Toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
components: rustfmt, clippy
- name: Check fmt
run: cargo fmt --all -- --check