Skip to content

Build and populate cache #596

Build and populate cache

Build and populate cache #596

Workflow file for this run

name: Build and populate cache
on:
push:
paths:
- "modules/flake/packages"
- "**.lock"
workflow_dispatch:
workflow_run:
workflows:
- Bump Flake Inputs
types:
- completed
jobs:
build:
name: Build (${{ matrix.system }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
package:
- lix
include:
- os: ubuntu-latest
system: x86_64-linux
- os: macos-latest
system: aarch64-darwin
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Lix
uses: DeterminateSystems/nix-installer-action@main
with:
source-url: https://install.lix.systems/lix/lix-installer-${{ matrix.system }}
logger: pretty
diagnostic-endpoint: ""
extra-conf: |
substituters = https://nix-community.cachix.org https://isabelroses.cachix.org https://catppuccin.cachix.org https://cache.nixos.org/
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs= isabelroses.cachix.org-1:mXdV/CMcPDaiTmkQ7/4+MzChpOe6Cb97njKmBQQmLPM= catppuccin.cachix.org-1:noG/4HkbhJb+lUAdKrph6LaozJvAeEEZj4N732IysmU=
- name: Setup cachix
uses: cachix/cachix-action@v15
with:
name: isabelroses
signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}"
authToken: "${{ secrets.CACHIX_TOKEN }}"
- name: Build from the matrix
run: nix build -L .#${{ matrix.package }}