From b6b9527c9c8cca855f9dd18486cdfac0e1a79e2d Mon Sep 17 00:00:00 2001 From: "Aleksei (Faumaray) Selikhov" Date: Sun, 6 Dec 2026 11:24:04 +0300 Subject: [PATCH] ci: unique installer build directory per run attempt The diagnostics showed the sealed snapshot tree being rewritten while the build compiled from it (files re-created mid-job), so another job execution was sharing the directory. Reruns share the run id: key the self-hosted build directory by run attempt as well. --- .gitea/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index a06609d..4ef2a74 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -295,7 +295,7 @@ jobs: out=dist-installers prefix="$(mktemp -d)" mkdir -p "${out}" - build_dir="build/selfhost-${GITHUB_RUN_ID}" + build_dir="build/selfhost-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT:-1}" install_archive() { local fmt="$1" ext="$2" local attempt=1 @@ -374,7 +374,7 @@ jobs: out=dist-installers-windows prefix="$(mktemp -d)" mkdir -p "${out}" - build_dir="build/selfhost-windows-${GITHUB_RUN_ID}" + build_dir="build/selfhost-windows-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT:-1}" for fmt in tar zip nuget wix; do case "${fmt}" in tar) ext=tar ;;