-
Notifications
You must be signed in to change notification settings - Fork 9
32 lines (26 loc) · 854 Bytes
/
ci.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
name: ci
on:
workflow_dispatch:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Set up QEMU for running tests
uses: docker/setup-qemu-action@v3
- name: Install Nix
uses: cachix/install-nix-action@7ac1ec25491415c381d9b62f0657c7a028df52a7 # v24
with:
install_url: "https://releases.nixos.org/nix/nix-2.13.3/install"
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: "system-features = nixos-test kvm"
- name: Configure binary cache
uses: cachix/cachix-action@v13
with:
name: nixos-vfio
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- name: Flake check
run: nix flake check