Skip to content

Commit ce804fc

Browse files
committed
Add a GitHub CI workflow for testing the nix flake
1 parent 9e2e51e commit ce804fc

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/nix-build.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Nix Build
2+
3+
on:
4+
pull_request:
5+
push:
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Install nix
17+
uses: cachix/install-nix-action@v31
18+
with:
19+
nix_path: nixpkgs=channel:nixos-unstable
20+
21+
- name: Configure nix
22+
run: |
23+
mkdir -p ~/.config/nix
24+
echo 'accept-flake-config = true' >>~/.config/nix/nix.conf
25+
26+
- name: Check nix build
27+
run: nix build

0 commit comments

Comments
 (0)