Move to Nix #106
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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: nix build -L .#fmt | |
- name: Clippy | |
run: nix build -L .#clippy | |
- name: cargo-deny | |
run: nix develop --command cargo-deny check | |
- name: Test | |
run: nix build -L .#test | |
build: | |
name: Build | |
needs: | |
- formatting-and-quality | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cachix/install-nix-action@v20 | |
- name: Build | |
run: nix build -L |