Skip to content

Commit 430b4aa

Browse files
committed
Experimental nix flake check with KVM
1 parent edfe053 commit 430b4aa

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
flake-check:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Enable KVM
16+
run: |
17+
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
18+
sudo udevadm control --reload-rules
19+
sudo udevadm trigger --name-match=kvm
20+
21+
- uses: cachix/install-nix-action@v30
22+
with:
23+
nix_path: nixpkgs=channel:nixos-unstable
24+
25+
- uses: cachix/cachix-action@v15
26+
with:
27+
name: stackage-infrastructure
28+
29+
- name: Check flake
30+
run: nix flake check

0 commit comments

Comments
 (0)