feat: add check-flake ci
Some checks failed
check-flake / lockfile (push) Failing after 6m47s

This commit is contained in:
2024-03-25 09:43:46 +02:00
parent e6b01f205c
commit e482aa9e63
2 changed files with 27 additions and 37 deletions

View File

@@ -0,0 +1,27 @@
name: check-flake
on:
push:
branches:
- main
pull_request:
jobs:
lockfile:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: "main"
- name: Setup sudo (required for the next step)
run: apt-get update && apt-get install -y sudo
- name: Setup nix
uses: cachix/install-nix-action@v26
with:
github_access_token: ${{ secrets.GH_ACCESS_TOKEN }}
- name: Check nix flake
run: |
nix --extra-experimental-features nix-command --extra-experimental-features flakes flake check --all-systems
- name: Build nix flake
run: |
nix --extra-experimental-features nix-command --extra-experimental-features flakes build --no-link .#