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>
This commit is contained in:
Igor Sirotin 2026-08-11 14:58:17 +02:00 committed by GitHub
parent ef651a7ccc
commit 56dda125ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 2 deletions

View File

@ -30,6 +30,13 @@ jobs:
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 }}'

View File

@ -2,9 +2,9 @@
description = "logos-delivery nim build flake";
nixConfig = {
extra-substituters = [ "https://nix-cache.status.im/" ];
extra-substituters = [ "https://cache.nix.logos.co/public" ];
extra-trusted-public-keys = [
"nix-cache.status.im-1:x/93lOfLU+duPplwMSBR+OlY4+mo+dCN7n0mr4oPwgY="
"public:l4HrXgL4nw246+LBh2SOJyhz64BoGegOYLheT/iIAPU="
];
};