-
Notifications
You must be signed in to change notification settings - Fork 10
37 lines (35 loc) · 977 Bytes
/
build-and-cache.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
name: Nix build and push to Cachix
on:
push:
branches:
- master
paths:
- 'nix/**'
- '.github/workflows/**'
jobs:
build:
name: ${{ matrix.profile }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
profile: [gregnix-personal, gregnix-nubank]
steps:
- uses: easimon/maximize-build-space@v6
with:
overprovision-lvm: true
remove-android: true
remove-dotnet: true
remove-haskell: true
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v18
- uses: cachix/cachix-action@v12
with:
name: ericdallo
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 ❄"
run: |
make build-${{ matrix.profile }} -C nix