This repository was archived by the owner on Jun 4, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 5
51 lines (44 loc) · 1.42 KB
/
Nix.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Nix Flake
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
self-care:
name: Flake self-check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check Nix flake inputs
uses: DeterminateSystems/flake-checker-action@v7
with:
fail-mode: true
config-tests:
name: "${{ matrix.os-name }} Nix Test"
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
os-name: "Framework Laptop"
flake-attr: nixosConfigurations.framework.config.system.build.toplevel
- os: ubuntu-latest
os-name: "Nvidia Desktop"
flake-attr: nixosConfigurations.desktop.config.system.build.toplevel
- os: macos-latest
os-name: "macOS x86"
flake-attr: darwinConfigurations.macbook_x86.config.system.build.toplevel
- os: macos-14
os-name: "macOS Apple Silicon"
flake-attr: darwinConfigurations.macbook.config.system.build.toplevel
steps:
- name: "Checkout Repo"
uses: actions/checkout@v4
- name: "Install Nix"
uses: DeterminateSystems/nix-installer-action@v10
- name: "Nix Cache"
uses: DeterminateSystems/magic-nix-cache-action@v4
- name: "Test Nix config"
run: nix build --dry-run -L '.#${{ matrix.flake-attr }}' --show-trace