-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (49 loc) · 1.63 KB
/
builds.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
name: CI
on:
workflow_dispatch: # allows manual triggering
push:
branches:
- master
pull_request:
branches:
- master
jobs:
linux:
name: Build Linux configs
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- uses: cachix/cachix-action@v14
with:
name: davsanchez
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
# Commented out as this is aarch64-linux only
# - name: Home configs
# run: nix run home-manager -- build --flake ".#david@nr-vm"
# - name: NixOS config (VM)
# run: nix build --flake ".#nixosConfigurations.nr-vm-utm"
- name: Colmena configs
run: nix shell "nixpkgs#colmena" --command colmena build --on eter --no-build-on-target
macos:
name: Build macOS configs
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- uses: cachix/cachix-action@v14
with:
name: davsanchez
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Home configs (solio)
run: nix run home-manager -- build --flake ".#david@solio"
- name: Home configs (sierpe)
run: nix run home-manager -- build --flake ".#david@sierpe"
- name: nix-darwin config (solio)
run: nix run nix-darwin -- build --flake ".#solio"
- name: nix-darwin config (sierpe)
run: nix run nix-darwin -- build --flake ".#sierpe"