From 75d5627779e399107b7dc1024c7410d82f2b3818 Mon Sep 17 00:00:00 2001 From: Philippe Gras Date: Sat, 23 Mar 2024 22:07:42 +0100 Subject: [PATCH] Update cmake-multi-platform.yml --- .github/workflows/cmake-multi-platform.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index 54602e5..fad185d 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -30,10 +30,10 @@ jobs: fetch-depth: 0 - name: Install liclang run: | - if [ "$RUNNER_OS" == "Linux" ]; then + if [ "$RUNNER_OS" = "Linux" ]; then sudo apt-get install clang-13 libclang-13-dev else #MacOS - brew install llvm + brew install llvm@13 fi - uses: julia-actions/setup-julia@latest with: @@ -43,10 +43,15 @@ jobs: run: | body="${{github.event.pull_request.body}}" package="$(echo "$body" | sed -n '1p')" - if [[ "$OSTYPE" != "darwin"* ]]; then + if [ "$OSTYPE" != "darwin"* ]; then rm -f /opt/hostedtoolcache/julia/1.6*/x64/lib/julia/libstdc++.so.6 fi - cmake -DClang_DIR=/usr/lib/llvm-13/lib/cmake/clang -B build -S . + if [ "$OSTYPE" = "Linux" ]; then + cmake -DClang_DIR=/usr/lib/llvm-13/lib/cmake/clang -B build -S . + else #MacOS + find / -name ClangConfig.cmake + cmake -DClang_DIR=/opt/homebrew/opt/llvm@13/lib/cmake/clang -B build -S . + fi cmake --build build --verbose -j `nproc` PATH="`pwd`/build:$PATH" echo "$PATH"