-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (40 loc) · 1.1 KB
/
build.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
name: Build
on:
workflow_dispatch:
push:
branches:
- 'master'
paths:
- '.github/workflows/**'
- '_sources/**'
- 'overlays/**'
- 'pkgs/**'
- 'flake.lock'
workflow_run:
workflows: [ "Update" ]
types:
- completed
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install packages
run: |
sudo apt-get install -y jq
- name: Install nix
uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixpkgs-unstable
extra_nix_config: |
experimental-features = nix-command flakes
- name: Build packages
uses: cachix/cachix-action@v15
with:
name: passivelemon
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
# https://www.reddit.com/r/NixOS/comments/vohopf/is_there_an_easy_way_to_build_all_the_packages_of/
# Potential future solution: https://github.com/NixOS/nix/issues/7165
- run: |
nix flake show --json | jq '.packages."x86_64-linux"|keys[]' | xargs -I {} nix build .#{}