From 4fe44de261092d695b9ad324d7a1e8dd0e5abf8a Mon Sep 17 00:00:00 2001 From: Raul Ferreira Date: Wed, 7 Feb 2024 02:39:18 +0000 Subject: [PATCH] Fix add-apt-repository command not found --- .github/workflows/cmake.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 6302c33..6fd0462 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -144,12 +144,10 @@ jobs: - name: Install LLVM on Ubuntu if: ${{ matrix.os == 'ubuntu-latest' && matrix.compiler-name == 'llvm' }} run: | - - sudo apt-get update - - sudo apt-get install -y software-properties-common - - sudo add-apt-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-16 main" - - sudo add-apt-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main" - - sudo apt-get update - - sudo apt-get install -y clang-${{ matrix.compiler-version }} libomp-${{ matrix.compiler-version }}-dev + sudo add-apt-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-16 main" + sudo add-apt-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main" + sudo apt-get update + sudo apt-get install -y clang-${{ matrix.compiler-version }} libomp-${{ matrix.compiler-version }}-dev - name: Install GCC on Ubuntu if: ${{ matrix.os == 'ubuntu-latest' && matrix.compiler-name == 'gcc' }}