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.
This commit is contained in:
1 parent
ac5a7bf267
commit
dc068ec67a
1 file changed
+2
-2
@@ -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 ;;
|
||||
|
||||
Reference in new issue
Block a user