Skip to content

flake.lock: Update #442

flake.lock: Update

flake.lock: Update #442

Workflow file for this run

name: Colmena
on:
push:
branches-ignore:
- nixos-legacy
- nixos-realise
workflow_call:
pull_request:
types: [opened,reopened]
jobs:
generate_matrix:
runs-on: ubuntu-latest
name: Generate hive list
outputs:
matrix: ${{ steps.matrix.outputs.matrix }}
steps:
- uses: cachix/install-nix-action@v30
name: Install Nix
- uses: actions/checkout@v4
- id: matrix
name: Run nix eval to generate node list
run: |
JSON=$(nix eval .#colmena --no-substitute --apply 'with builtins; x: filter (f: !elem f [ "defaults" "meta" ]) (attrNames x)' --json)
echo "matrix=$JSON" >> $GITHUB_OUTPUT
build:
runs-on: ubuntu-latest
name: Build node
needs: generate_matrix
strategy:
# each closure is independent from each other
fail-fast: false
matrix:
node: ${{ fromJSON(needs.generate_matrix.outputs.matrix) }}
steps:
- name: Install QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: arm64
- uses: cachix/install-nix-action@v30
name: Install Nix
with:
extra_nix_config: |
extra-platforms = aarch64-linux i686-linux
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= lychee-config:sFDIaZ98OL1yH6m3YWg4WMkwZESW1QzpAXzLOautme0=
trusted-substituters = https://cache.wires.cafe/lychee-config https://cache.nixos.org
substituters = https://cache.wires.cafe/lychee-config https://cache.nixos.org
- uses: actions/checkout@v4
- name: Build ${{ matrix.node }}
run: |
nix run nixpkgs#colmena -- build --keep-result --no-build-on-target -v --on ${{ matrix.node }}
- name: Attic Setup
run: |
nix profile install nixpkgs#attic-client
attic login wires https://cache.wires.cafe ${{ secrets.ATTIC_TOKEN }}
- name: Push closure to Attic
run: |
attic push lychee-config .gcroots/*