From 807d304380dc092aed388996c8a69c61eb1adb1c Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Tue, 18 Nov 2025 13:13:26 +0100 Subject: [PATCH] workflows: make cachix optional If cachix fails to install, we don't actually need to error out - we can still continue at the cost of building stuff more than required. That's better than erroring out, just because cachix has another hiccup, especially for the Merge Queue. --- .github/workflows/build.yml | 1 + .github/workflows/check.yml | 1 + .github/workflows/eval.yml | 1 + .github/workflows/lint.yml | 2 ++ 4 files changed, 5 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2050789b6718..1d3e035bfdc1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -68,6 +68,7 @@ jobs: extra_nix_config: sandbox = true - uses: cachix/cachix-action@0fc020193b5a1fa3ac4575aa3a7d3aa6a35435ad # v16 + continue-on-error: true with: # The nixpkgs-gha cache should not be trusted or used outside of Nixpkgs and its forks' CI. name: ${{ vars.CACHIX_NAME || 'nixpkgs-gha' }} diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 6d26cb9ed229..05cb9fca03f4 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -88,6 +88,7 @@ jobs: - uses: cachix/install-nix-action@7ec16f2c061ab07b235a7245e06ed46fe9a1cab6 # v31 - uses: cachix/cachix-action@0fc020193b5a1fa3ac4575aa3a7d3aa6a35435ad # v16 + continue-on-error: true with: # The nixpkgs-gha cache should not be trusted or used outside of Nixpkgs and its forks' CI. name: ${{ vars.CACHIX_NAME || 'nixpkgs-gha' }} diff --git a/.github/workflows/eval.yml b/.github/workflows/eval.yml index 088ff13f4008..63144133467c 100644 --- a/.github/workflows/eval.yml +++ b/.github/workflows/eval.yml @@ -103,6 +103,7 @@ jobs: uses: cachix/install-nix-action@7ec16f2c061ab07b235a7245e06ed46fe9a1cab6 # v31 - uses: cachix/cachix-action@0fc020193b5a1fa3ac4575aa3a7d3aa6a35435ad # v16 + continue-on-error: true with: # The nixpkgs-gha cache should not be trusted or used outside of Nixpkgs and its forks' CI. name: ${{ vars.CACHIX_NAME || 'nixpkgs-gha' }} diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 29154eea1dba..d9de58a5f028 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -73,6 +73,7 @@ jobs: - uses: cachix/install-nix-action@7ec16f2c061ab07b235a7245e06ed46fe9a1cab6 # v31 - uses: cachix/cachix-action@0fc020193b5a1fa3ac4575aa3a7d3aa6a35435ad # v16 + continue-on-error: true with: # The nixpkgs-gha cache should not be trusted or used outside of Nixpkgs and its forks' CI. name: ${{ vars.CACHIX_NAME || 'nixpkgs-gha' }} @@ -102,6 +103,7 @@ jobs: - uses: cachix/install-nix-action@7ec16f2c061ab07b235a7245e06ed46fe9a1cab6 # v31 - uses: cachix/cachix-action@0fc020193b5a1fa3ac4575aa3a7d3aa6a35435ad # v16 + continue-on-error: true with: # The nixpkgs-gha cache should not be trusted or used outside of Nixpkgs and its forks' CI. name: ${{ vars.CACHIX_NAME || 'nixpkgs-gha' }}