From 03087257dfb4a321ff264556ebbdee8d3f965a82 Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Sun, 14 May 2023 01:37:08 +0200 Subject: [PATCH] ci: Purge unwanted compilers --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e993588c..bf74e163 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -369,6 +369,7 @@ jobs: git IFS=$'-' compiler=($(echo "${{ matrix.compiler }}")) # ToDo: Can this be done without invoking a sub-shell? if [[ "${compiler[0]}" == "GCC" ]]; then + sudo apt-get purge "gcc*" "g++*" sudo apt-get install \ binutils gcc-${compiler[1]} g++-${compiler[1]} sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${compiler[1]} 800 --slave /usr/bin/g++ g++ /usr/bin/g++-${compiler[1]} @@ -377,7 +378,7 @@ jobs: echo "CMAKE_C_FLAGS=-fuse-ld=ld" >> "$GITHUB_ENV" echo "CMAKE_CXX_FLAGS=-fuse-ld=ld" >> "$GITHUB_ENV" elif [[ "${compiler[0]}" == "Clang" ]]; then - sudo apt-get purge clang clangd clang++ lld lldb clang-format clang-tidy + sudo apt-get purge "*clang*" "*clangd*" "*clang++*" "lld*" "*clang-format*" "*clang-tidy*" curl -jLo /tmp/llvm.sh "https://apt.llvm.org/llvm.sh" chmod +x /tmp/llvm.sh sudo /tmp/llvm.sh ${compiler[1]} all