From 358164f49d6162e45502aac8efc726159cc2d888 Mon Sep 17 00:00:00 2001 From: Matthias Ahouansou Date: Sun, 5 May 2024 09:01:40 +0100 Subject: [PATCH] ci: only cache attic when nix is available --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f42fa7f4..da109e50 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -50,7 +50,7 @@ before_script: - export CARGO_HOME="$(git rev-parse --show-toplevel)/.gitlab-ci.d/cargo" # Cache attic client - - ./bin/nix-build-and-cache --inputs-from . attic + - if command -v nix > /dev/null; then ./bin/nix-build-and-cache --inputs-from . attic; fi ci: stage: ci