From 0a75e1d92f831705512322621ba10274b76c0e32 Mon Sep 17 00:00:00 2001 From: Garmelon Date: Tue, 19 May 2026 20:23:57 +0100 Subject: [PATCH] chore: CI: fix stage2 release build (#13790) If we're using the downloaded LLVM release and building stage2/stage3, we need to also copy stage1 to stage2/stage3 respectively before continuing the build. Previously, the CI did not do this in every case. Now we do it unconditionally because the overhead is small enough. --- .github/workflows/build-template.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-template.yml b/.github/workflows/build-template.yml index c74d950098..4eb49c3125 100644 --- a/.github/workflows/build-template.yml +++ b/.github/workflows/build-template.yml @@ -145,9 +145,8 @@ jobs: if [[ -n '${{ matrix.prepare-llvm }}' ]]; then wget -q ${{ matrix.llvm-url }} PREPARE="$(${{ matrix.prepare-llvm }})" - if [ "$TARGET_STAGE" == "stage2" ]; then - cp -r stage1 stage2 - fi + cp -r stage1 stage2 + cp -r stage1 stage3 eval "OPTIONS+=($PREPARE)" fi if [[ -n '${{ matrix.release }}' && -n '${{ inputs.nightly }}' ]]; then