31 lines
546 B
YAML
31 lines
546 B
YAML
name: Matrix
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
jobs:
|
|
strategy:
|
|
matrix:
|
|
rust:
|
|
- stable
|
|
- beta
|
|
- nightly
|
|
|
|
main:
|
|
name: ${{matrix.rust}}
|
|
runs-on: x86_64-linux
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: dtolnay/rust-toolchain@master
|
|
with:
|
|
toolchain: ${{matrix.rust}}
|
|
components: rustfmt, clippy
|
|
- run: rustup --version
|
|
- run: rustc -vV
|
|
|
|
- run: cargo clippy
|
|
- run: cargo fmt --all -- --check
|
|
- run: cargo test
|