From 0925d6e53d472418f4c279e38fe0735f3984e35e Mon Sep 17 00:00:00 2001 From: momo5502 Date: Tue, 18 Mar 2025 18:16:33 +0100 Subject: [PATCH] Optimize clang install --- .github/workflows/build.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dc2edf23..ec952fe4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -164,11 +164,9 @@ jobs: - name: Install Clang if: "${{ matrix.platform == 'Linux x86_64 Clang' }}" run: | - sudo apt update - sudo apt install -y wget gnupg software-properties-common - wget https://apt.llvm.org/llvm-snapshot.gpg.key -O- | sudo gpg --dearmor -o /usr/share/keyrings/llvm-archive-keyring.gpg - echo "deb [signed-by=/usr/share/keyrings/llvm-archive-keyring.gpg] https://apt.llvm.org/$(lsb_release -sc)/ llvm-toolchain-$(lsb_release -sc)-${{ matrix.clang-version }} main" | sudo tee /etc/apt/sources.list.d/llvm.list - sudo apt update + wget https://apt.llvm.org/llvm.sh + chmod +x llvm.sh + sudo ./llvm.sh ${{ matrix.clang-version }} sudo apt install -y clang-${{ matrix.clang-version }} lld-${{ matrix.clang-version }} sudo update-alternatives --install /usr/bin/cc cc /usr/bin/clang-${{ matrix.clang-version }} 100 sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-${{ matrix.clang-version }} 100