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: