From 56dda125ff724d44c167149244c6b87033368915 Mon Sep 17 00:00:00 2001 From: Igor Sirotin Date: Tue, 11 Aug 2026 14:58:17 +0200 Subject: [PATCH] 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 --- .github/workflows/ci-nix.yml | 7 +++++++ flake.nix | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-nix.yml b/.github/workflows/ci-nix.yml index 7319f64aa..3e267c3e9 100644 --- a/.github/workflows/ci-nix.yml +++ b/.github/workflows/ci-nix.yml @@ -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 }}' diff --git a/flake.nix b/flake.nix index 8de1db74a..157359b8c 100644 --- a/flake.nix +++ b/flake.nix @@ -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=" ]; };