Skip to content

Commit 4b63a6b

Browse files
committed
Experimental nix flake check with KVM
1 parent edfe053 commit 4b63a6b

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
23+
- uses: cachix/cachix-action@v15
24+
with:
25+
name: stackage-infrastructure
26+
27+
- name: Check flake
28+
run: nix flake check

0 commit comments

Comments
 (0)