29 lines
737 B
YAML
29 lines
737 B
YAML
name: check-flake
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
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@v29
|
|
with:
|
|
github_access_token: ${{ secrets.GH_ACCESS_TOKEN }}
|
|
nix_path: nixpkgs=channel:nixos-23.11
|
|
- name: Build nix flake
|
|
run: |
|
|
while true; do sleep 1; rm -rf /homeless-shelter; done &
|
|
nix build
|
|
- name: Check nix flake
|
|
run: nix flake check --all-systems
|