-
Notifications
You must be signed in to change notification settings - Fork 2
30 lines (29 loc) · 872 Bytes
/
check.yml
File metadata and controls
30 lines (29 loc) · 872 Bytes
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
name: "Nix flake check"
on:
workflow_dispatch:
pull_request:
jobs:
check:
runs-on: ubuntu-latest
env:
NIXPKGS_ALLOW_BROKEN: "1"
NIXPKGS_ALLOW_UNFREE: "1"
NIXPKGS_ALLOW_INSECURE: "1"
NIX_CONFIG: |
experimental-features = nix-command flakes
permissions:
contents: read
steps:
- uses: actions/checkout@v6
- name: mount Nix store on larger partition
# on the Linux runner `/` doesn't have enough space, but there's a `/mnt` which does.
if: runner.os == 'Linux'
run: |
sudo mkdir /nix /mnt/nix
sudo mount --bind /mnt/nix /nix
- uses: cachix/install-nix-action@v31
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Build default package
run: |
nix build --accept-flake-config .#packages.x86_64-linux.default