Files
logos-messaging-nim/.github/workflows/ci-nix.yml
T
Igor SirotinandClaude Fable 5 56dda125ff ci: pull and publish the Logos Attic cache in nix builds (#4071)
Adopts logos-co/setup-nix-cache-action (as in logos-delivery-module#69);
flake.nix substituter moves from the retired status.im nix-cache to
cache.nix.logos.co/public.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-11 13:58:17 +01:00

47 lines
1.1 KiB
YAML

name: ci / nix
permissions:
contents: read
pull-requests: read
checks: write
on:
pull_request:
branches: [master]
jobs:
build:
strategy:
fail-fast: false
matrix:
system:
- aarch64-darwin
- x86_64-linux
nixpkg:
- liblogosdelivery
include:
- system: aarch64-darwin
runs_on: [self-hosted, macOS, ARM64]
- system: x86_64-linux
runs_on: [self-hosted, Linux, X64]
name: '${{ matrix.system }} / ${{ matrix.nixpkg }}'
runs-on: ${{ matrix.runs_on }}
steps:
- uses: actions/checkout@v4
# Self-hosted runners have Nix preinstalled.
- uses: logos-co/setup-nix-cache-action@v1
with:
install-nix: false
attic-token-ci: ${{ secrets.ATTIC_TOKEN_CI }}
attic-token-public: ${{ secrets.ATTIC_TOKEN_PUBLIC }}
- name: 'Run Nix build for ${{ matrix.nixpkg }}'
shell: bash
run: nix build -L '.#${{ matrix.nixpkg }}'
- name: 'Show result contents'
shell: bash
run: find result -type f