From 37296e0b2de4fe3354bde3c77b834d070fdf8345 Mon Sep 17 00:00:00 2001 From: injae <8687lee@gmail.com> Date: Sun, 31 Dec 2023 13:28:22 +0900 Subject: [PATCH] change github action llvm install script --- .github/workflows/code-cov.yml | 13 +++++++------ .github/workflows/linux.yml | 12 +++++++----- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/.github/workflows/code-cov.yml b/.github/workflows/code-cov.yml index 80c6a37..f15ccfa 100644 --- a/.github/workflows/code-cov.yml +++ b/.github/workflows/code-cov.yml @@ -14,14 +14,15 @@ jobs: steps: - name: ccache uses: hendrikmuhs/ccache-action@v1 - - name: C++ Setting + - name: Basic Setting run: | - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test - wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add - - sudo add-apt-repository -y "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-${{matrix.clang-version}} main" sudo apt-get update - sudo apt-get install -yq clang-${{matrix.clang-version}} libc++-dev libc++abi-dev libstdc++-${{matrix.clang-version}}-dev build-essential cmake - sudo apt-get install -yq libllvm${{matrix.clang-version}} llvm-${{matrix.clang-version}} llvm-${{matrix.clang-version}}-dev llvm-${{matrix.clang-version}}-runtime + sudo apt-get install -yq build-essential cmake + - name: Install LLVM + run: | + wget https://apt.llvm.org/llvm.sh + chmod +x ./llvm.sh + sudo ./llvm.sh ${{matrix.clang-version}} - name: Compiler Setting run: | echo "CC=clang-${{matrix.clang-version}}" >> $GITHUB_ENV diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 903512a..ce24aa6 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -48,13 +48,15 @@ jobs: steps: - name: ccache uses: hendrikmuhs/ccache-action@v1 - - name: C++ Setting + - name: Basic Setting run: | - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test - wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add - - sudo add-apt-repository -y "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-${{matrix.clang-version}} main" sudo apt-get update - sudo apt-get install -yq clang-${{matrix.clang-version}} libc++-dev libc++abi-dev libstdc++-${{matrix.clang-version}}-dev build-essential cmake + sudo apt-get install -yq build-essential cmake + - name: Install LLVM + run: | + wget https://apt.llvm.org/llvm.sh + chmod +x ./llvm.sh + sudo ./llvm.sh ${{matrix.clang-version}} - name: Compiler Setting run: | echo "CC=clang-${{matrix.clang-version}}" >> $GITHUB_ENV