Skip to content

initial commit

initial commit #6

Workflow file for this run

name: ci
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
ci:
name: ci
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust: [stable, beta, nightly, 1.80.0] # stable, beta, nightly, and MSRV
exec: ["cargo test", "cargo test --release"]
include:
- rust: stable
exec: cargo deny check
- rust: stable
exec: cargo fmt --all -- --check
- rust: stable
exec: cargo clippy --bins -- -D warnings
steps:
- name: checkout code
uses: actions/checkout@v5
- name: install rust toolchain
uses: dtolnay/rust-toolchain@master
if: matrix.exec != ''
with:
toolchain: ${{ matrix.rust }}
components: clippy, rustfmt
- name: cache rust toolchain
uses: Swatinem/rust-cache@v2
if: matrix.exec != ''
- name: cargo deny
uses: EmbarkStudios/cargo-deny-action@v2
if: matrix.exec == 'cargo deny check'
- name: ${{ matrix.exec }}
run: ${{ matrix.exec }}
if: matrix.exec != 'cargo deny check'