mirror of
https://github.com/logos-messaging/logos-delivery.git
synced 2026-06-04 05:00:02 +00:00
ci: add cachix to nix workflow
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
4b80c7762d
commit
4a9e147c64
18
.github/workflows/ci-nix.yml
vendored
18
.github/workflows/ci-nix.yml
vendored
@ -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 }}'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user