From 61eb847c7e8d881681d8bc193e0033200ec6959f Mon Sep 17 00:00:00 2001 From: Siarhei Fedartsou Date: Mon, 29 Aug 2022 23:38:50 +0200 Subject: [PATCH] Use apt-get to install Clang on CI --- .github/workflows/osrm-backend.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/osrm-backend.yml b/.github/workflows/osrm-backend.yml index d22d8c736..fa229b5da 100644 --- a/.github/workflows/osrm-backend.yml +++ b/.github/workflows/osrm-backend.yml @@ -529,13 +529,13 @@ jobs: echo "$(${MASON} prefix ccache ${CCACHE_VERSION})/bin" >> $GITHUB_PATH # clang - if [[ "${CCOMPILER}" = "clang-6.0" ]]; then + if [[ "${CCOMPILER}" == "clang-6.0" ]]; then sudo apt-get update -y && sudo apt-get install clang++-6 fi # we only enable lto for release builds # and therefore don't need to us ld.gold or llvm tools for linking # for debug builds - if [[ "${CCOMPILER}" = clang-* && ${BUILD_TYPE} == 'Release' ]]; then + if [[ "${CCOMPILER}" == clang-* ]] && [[ ${BUILD_TYPE} == 'Release' ]]; then ${MASON} install binutils 2.27 echo "$(${MASON} prefix binutils 2.27)/bin" >> $GITHUB_PATH fi