From 68eea234c353a56926552e729280417ec5762358 Mon Sep 17 00:00:00 2001 From: lzydmxy <13126752315@163.com> Date: Tue, 24 Sep 2024 15:21:54 +0800 Subject: [PATCH] Fix llvm download script --- .github/workflows/prepare-env.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/prepare-env.sh b/.github/workflows/prepare-env.sh index bce925c302..7c14caaa98 100644 --- a/.github/workflows/prepare-env.sh +++ b/.github/workflows/prepare-env.sh @@ -5,12 +5,9 @@ llvm_priority=300 sudo apt install -y ninja-build ccache -# install llvm -wget https://apt.llvm.org/llvm.sh - # Check if the desired LLVM version is already installed if ! llvm-config-${llvm_version} --version &>/dev/null; then - sudo ./llvm.sh ${llvm_version} all + sudo curl -sL https://apt.llvm.org/llvm.sh | sudo bash -s -- 18 all else echo "LLVM ${llvm_version} is already installed." fi