-
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@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
- name: Set up QEMU for running tests
uses: docker/setup-qemu-action@v3
- name: Install Nix
uses: cachix/install-nix-action@6a9a9e84a173d90b3ffb42c5ddaf9ea033fad011 # v23
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@v12
with:
name: nixos-vfio
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- name: Flake check
run: nix flake check