Skip to content

Build

Build #188

Workflow file for this run

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 .#{}