name: CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
jobs:
ci:
name: CI
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd with:
persist-credentials: false
- name: Setup Nix
uses: arcuru/actions/.github/actions/setup-nix@863120f2dbc739f0b9a66c5c01e85b87d7551ac8
- name: Lint
run: |
nix develop -c nix-fast-build --skip-cached --no-nom --no-link \
-f '.#checks.x86_64-linux.lint'
nix develop -c nix-fast-build --skip-cached --no-nom --no-link \
-f '.#checks.x86_64-linux.treefmt'
- name: Test
run: |
nix develop -c nix-fast-build --skip-cached --no-nom --no-link \
-f '.#checks.x86_64-linux.test'
- name: Doc
run: |
nix develop -c nix-fast-build --skip-cached --no-nom --no-link \
-f '.#checks.x86_64-linux.doc'
- name: Build
run: |
nix develop -c nix-fast-build --skip-cached --no-nom --no-link \
-f '.#checks.x86_64-linux.build'