-
Notifications
You must be signed in to change notification settings - Fork 7
51 lines (51 loc) · 1.6 KB
/
build.yaml
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
51
name: Build
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
flake:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25
- uses: DeterminateSystems/magic-nix-cache-action@v2
- name: Check flake
run: nix flake check
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25
- uses: DeterminateSystems/magic-nix-cache-action@v2
- name: Check format
run: |
nix fmt
git diff --exit-code
home-manager:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25
- uses: DeterminateSystems/magic-nix-cache-action@v2
- name: Build Home Manager configuration
run: |
nix-env -q # TODO: Remove. https://github.com/nix-community/home-manager/pull/3872
nix run '.#home' -- build --flake '.#ci' --print-build-logs
nixos:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25
- uses: DeterminateSystems/magic-nix-cache-action@v2
- name: Build NixOS configuration
run: nix run '.#os' -- build -L --flake '.#ci' --print-build-logs
nix-darwin-amd64:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25
- uses: DeterminateSystems/magic-nix-cache-action@v2
- name: Build nix-darwin configuration
run: nix run '.#os' -- build -L --flake '.#ci-amd64' --print-build-logs