name: "ci" on: push: branches: ["main"] pull_request: branches: ["main"] env: CARGO_TERM_COLOR: "always" jobs: ci: runs-on: "ubuntu-latest" strategy: matrix: rust-version: ["1.79.0", "stable"] steps: - uses: "actions/checkout@v4.1.7" - uses: "dtolnay/rust-toolchain@master" with: toolchain: "${{ matrix.rust-version }}" components: "clippy, rustfmt" - run: "rustc --version" - run: "cargo build --verbose" - run: "cargo test --verbose" - run: "cargo clippy --verbose -- -D warnings" - run: "cargo fmt -- --check"