Skip to content

Commit

Permalink
๐Ÿ—๐Ÿ”จ Set up clang using llvm apt script
Browse files Browse the repository at this point in the history
  • Loading branch information
GHF committed Nov 16, 2023
1 parent 6b05324 commit 20f6805
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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-${{ matrix.version }} /usr/local/bin/cc
sudo ln -f -s /usr/bin/clang++-${{ matrix.version }} /usr/local/bin/c++
- name: Set up GCC
if: matrix.compiler == 'GCC'
Expand Down

0 comments on commit 20f6805

Please sign in to comment.