-
Notifications
You must be signed in to change notification settings - Fork 5
36 lines (34 loc) · 1005 Bytes
/
nixos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Reference: https://github.com/skatolo/gh-actions-nixos-tests
name: NixOS
on:
push:
paths-ignore:
- '**/*.md'
branches:
- main
pull_request:
paths-ignore:
- '**/*.md'
jobs:
nixos-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '>=1.21'
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- uses: cachix/install-nix-action@v22
with:
extra_nix_config: "system-features = nixos-test benchmark big-parallel kvm"
github_access_token: ${{ secrets.GITHUB_TOKEN }}
nix_path: nixpkgs=channel:nixos-unstable
- uses: DeterminateSystems/magic-nix-cache-action@main
# This brings up two NixOS VMs - one for Docker and one for Podman - and ensures that
# the compose2nix generated config works when loaded into NixOS.
- name: NixOS test
run: |
sudo chmod o+rw /dev/kvm
./nixos-test/run.sh