From 80453b935f9ede0329181e387630e6538043ec38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Moreau?= Date: Tue, 7 Nov 2023 16:40:52 -0500 Subject: [PATCH] try ugly hack --- .github/workflows/halide-prebuilt.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/halide-prebuilt.yml b/.github/workflows/halide-prebuilt.yml index d3183f2..df7e33c 100644 --- a/.github/workflows/halide-prebuilt.yml +++ b/.github/workflows/halide-prebuilt.yml @@ -142,6 +142,18 @@ jobs: echo "LLVM_TARGET_DIR=$LLVM_DIR" >> $Env:GITHUB_ENV echo "CLANG_TARGET_DIR=$CLANG_DIR" >> $Env:GITHUB_ENV + $LLVM_HOST_BIN_DIR=$Env:LLVM_HOST_BIN_DIR + $LLVM_TARGET_BIN_DIR=$LLVM_BIN_PATH + if ($IsWindows) { + @('llvm-as.exe', 'clang.exe', 'clang-format.exe') | ForEach-Object { + Copy-Item -Path "${LLVM_HOST_BIN_DIR}\$_" -Destination "${LLVM_TARGET_BIN_DIR}\$_" -Force + } + } else { + @('llvm-as', 'clang', 'clang-format') | ForEach-Object { + Copy-Item -Path "${LLVM_HOST_BIN_DIR}/$_" -Destination "${LLVM_TARGET_BIN_DIR}/$_" -Force + } + } + - name: Clone project uses: actions/checkout@v3 with: