From 1f19bcd6b4fed74537595f6f5bbd4084375c1c79 Mon Sep 17 00:00:00 2001 From: Xo Wang Date: Wed, 15 Nov 2023 21:49:33 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=97=F0=9F=94=A8=20Set=20up=20clang=20u?= =?UTF-8?q?sing=20llvm=20apt=20script?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/unit_tests.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 923745e..544630d 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -37,10 +37,12 @@ jobs: - name: Set up Clang if: matrix.compiler == 'Clang' - uses: egor-tensin/setup-clang@v1 - with: - version: ${{ matrix.version }} - cc: 1 + run: | + wget https://apt.llvm.org/llvm.sh + chmod +x ./llvm.sh + sudo ./llvm.sh ${{ matrix.version }} + sudo ln -f -s /usr/bin/clang /usr/local/bin/cc + sudo ln -f -s /usr/bin/clang++ /usr/local/bin/c++ - name: Set up GCC if: matrix.compiler == 'GCC'