Skip to content

Commit 4c14e87

Browse files
committed
ci: no fallback for GHA LLVM cache
1 parent abf42ae commit 4c14e87

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -228,29 +228,7 @@ jobs:
228228
cmake --build ./build --target help
229229
fi
230230
N_CORES=$(nproc 2>/dev/null || echo 1)
231-
if [ ${{ runner.os }} != 'Windows' ]; then
232-
cmake --build ./build --config Release --parallel $N_CORES
233-
else
234-
# Allow build step to fail
235-
set +e
236-
cmake --build ./build --config Release --parallel $N_CORES
237-
exit_code=$?
238-
set -e
239-
if [ $exit_code -ne 0 ]; then
240-
echo "Could not build LLVM in CI. Fetching pre-built binaries from mrdocs.com."
241-
cd ..
242-
llvm_archive_filename="Windows-Release-${{ steps.llvm-parameters.outputs.llvm-id }}.7z"
243-
llvm_url="https://mrdocs.com/llvm+clang/$llvm_archive_filename"
244-
curl -L -o "$llvm_archive_filename" "$llvm_url"
245-
7z x "$llvm_archive_filename"
246-
cd "Release"
247-
mkdir -p "$llvm_project_root"/install
248-
mv * "$llvm_project_root"/install
249-
cd ..
250-
rm -rf "Release"
251-
exit 0
252-
fi
253-
fi
231+
cmake --build ./build --config Release --parallel $N_CORES
254232
cmake --install ./build --prefix "$llvm_project_root"/install
255233
256234
- name: Install Node.js

0 commit comments

Comments
 (0)