-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.26 KB
/
flake.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
name: flake
on:
pull_request:
push:
branches:
- master
jobs:
check-flake:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: DeterminateSystems/flake-checker-action@v8
- uses: DeterminateSystems/nix-installer-action@v12
- uses: DeterminateSystems/magic-nix-cache-action@v7
- run: nix flake check --show-trace
build-flake:
needs: check-flake
strategy:
max-parallel: 1
matrix:
include:
- name: radoslawgrochowski-wsl
os: ubuntu-latest
output: ".#nixosConfigurations.radoslawgrochowski-wsl.config.system.build.toplevel"
- name: macaron
os: macos-latest
output: ".#darwinConfigurations.macaron.config.system.build.toplevel"
name: ${{ matrix.name }}-build
runs-on: ${{ matrix.os }}
steps:
- uses: actions/[email protected]
- uses: DeterminateSystems/flake-checker-action@v8
- uses: DeterminateSystems/nix-installer-action@v12
- uses: DeterminateSystems/magic-nix-cache-action@v7
- uses: cachix/cachix-action@v15
with:
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
name: radoslawgrochowski-dotfiles
- run: nix build ${{ matrix.output }} -L --show-trace --accept-flake-config