-
Notifications
You must be signed in to change notification settings - Fork 79
71 lines (57 loc) · 1.55 KB
/
home.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Home
on:
pull_request:
push:
branches:
- master
paths-ignore:
- 'GNOME.md'
- 'README.md'
- 'notes/**'
- '.git-crypt/**'
- '.gitattributes'
- '.gitignore'
- 'system/**'
- 'outputs/os.nix'
- 'switch'
- '.mergify.yml'
- 'garnix.yaml'
jobs:
checks:
runs-on: ubuntu-latest
outputs:
garnix: ${{ steps.garnix.outputs.status }}
steps:
- uses: actions/[email protected]
- name: Garnix check status
id: garnix
uses: ./.github/actions/garnix-check
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
build:
runs-on: ubuntu-latest
needs: checks
if: needs.checks.outputs.garnix == 'failure'
strategy:
fail-fast: true
matrix:
config_name:
- hyprland-edp
- hyprland-hdmi
- hyprland-hdmi-mutable
- xmonad-edp
- xmonad-hdmi
steps:
- uses: actions/[email protected]
- name: "Install Nix ❄️"
uses: cachix/install-nix-action@v30
- name: "Install Cachix ❄️"
uses: cachix/cachix-action@v15
with:
name: gvolpe-nixos
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
# Needed because cachix is also installed by Home Manager
- name: "Set priority flag for Cachix 🚩"
run: nix-env --set-flag priority 0 cachix
- name: "Build ${{ matrix.config_name }} Home Manager config 🏠"
run: nix build .#homeConfigurations.${{ matrix.config_name }}.activationPackage -L