Skip to content

add simple ci

add simple ci #1

Workflow file for this run

name: checks
on: push
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-Dwarnings"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-build-stable-${{ hashFiles('**/Cargo.toml') }}
- uses: dtolnay/rust-toolchain@stable
- name: Build
run: cargo build
- name: Clippy
run: cargo clippy
- name: Test
run: cargo test
- name: Check Examples
run: cargo check --examples