-
-
Notifications
You must be signed in to change notification settings - Fork 81
40 lines (34 loc) · 949 Bytes
/
Copy pathnix.yml
File metadata and controls
40 lines (34 loc) · 949 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
31
32
33
34
35
36
37
38
39
40
name: Nix
on:
pull_request:
push:
branches:
- master
paths:
- "flake.nix"
- "Cargo.toml"
- "Cargo.lock"
- "src/**"
- "assets/**"
- "build.rs"
- ".github/workflows/nix.yml"
jobs:
flake-check:
name: Flake check (x86_64-linux)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v31
with:
extra_nix_config: |
experimental-features = nix-command flakes
- name: Verify package outputs for all supported systems
run: |
nix eval .#packages.x86_64-linux.ferrite.pname
nix eval .#packages.aarch64-linux.ferrite.pname
nix eval .#packages.x86_64-darwin.ferrite.pname
nix eval .#packages.aarch64-darwin.ferrite.pname
- name: Run flake checks
run: nix flake check --print-build-logs