Skip to content

Add Nix tooling

Add Nix tooling #37

Workflow file for this run

---
name: CI
on:
push:
branches:
- main
tags:
- 'v*'
pull_request:
jobs:
formatting-and-quality:
name: Formatting and Quality
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
- name: Format
run: |
eval "$(nix print-dev-env)"
cargo fmt -- --check
- name: Clippy
run: |
eval "$(nix print-dev-env)"
cargo clippy --all-features --all-targets -- -Dwarnings
documentation:
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
- name: rustdoc
run: |
eval "$(nix print-dev-env)"
cargo doc --all-features
build-and-test:
name: Build and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
- name: Build
run: |
eval "$(nix print-dev-env)"
cargo build --all-features --all-targets