Skip to content

Add nix flake

Add nix flake #28

Workflow file for this run

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
cargo-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
overwrite: true
- run: cargo check
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
overwrite: true
- run: cargo fmt --all --check
build-release-all-features:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
overwrite: true
- run: cargo build --release --all-features
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
overwrite: true
- run: cargo test
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
overwrite: true
- run: cargo clippy