-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 1.03 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
name: "Build & push to cache"
on:
push:
branches:
- main
jobs:
tests:
name: "Build ${{ matrix.target }}"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-22.04
target: nixosConfigurations.sandhose-desktop.config.system.build.toplevel
- os: ubuntu-22.04
target: nixosConfigurations.spaetzle.config.system.build.toplevel
- os: macos-14
target: darwinConfigurations.sandhose-laptop-m1.system
steps:
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Setup Cachix
uses: cachix/cachix-action@v14
with:
name: sandhose
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
extraPullNames: nix-community
- name: Build system
env:
TARGET: "github:${{ github.repository }}/${{ github.ref }}#${{ matrix.target }}"
run: nix build $TARGET --fallback --keep-going --log-format raw --print-build-logs