ci: add cachix to nix workflow

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Igor Sirotin 2026-05-26 00:24:07 +01:00
parent 4b80c7762d
commit 4a9e147c64
No known key found for this signature in database
GPG Key ID: 07D05CE1DCB4A874

View File

@ -6,6 +6,9 @@ permissions:
on:
pull_request:
branches: [master]
push:
branches: [master]
tags: ['v*']
jobs:
build:
@ -17,6 +20,7 @@ jobs:
- x86_64-linux
nixpkg:
- liblogosdelivery
- rln
include:
- system: aarch64-darwin
@ -30,6 +34,20 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Setup Cachix (read-only)
if: github.event_name == 'pull_request'
uses: cachix/cachix-action@v15
with:
name: logos-co
skipPush: true
- name: Setup Cachix (push)
if: github.event_name == 'push'
uses: cachix/cachix-action@v15
with:
name: logos-co
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: 'Run Nix build for ${{ matrix.nixpkg }}'
shell: bash
run: nix build -L '.#${{ matrix.nixpkg }}'