From ce4de80cda814f324e9afd98a09fc9dc9dc3f6a4 Mon Sep 17 00:00:00 2001 From: Philippe Gras Date: Wed, 22 Jan 2025 14:19:36 +0100 Subject: [PATCH] Change OS of CI to previous releases as latest one does not provide clang-13 --- .github/workflows/test-linux.yml | 3 ++- .github/workflows/test-macos.yml | 18 ++++++++++++++---- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test-linux.yml b/.github/workflows/test-linux.yml index 8e6da72..2d39f5d 100644 --- a/.github/workflows/test-linux.yml +++ b/.github/workflows/test-linux.yml @@ -20,7 +20,8 @@ jobs: - '1.10' - 'nightly' os: - - ubuntu-latest +# - ubuntu-latest + - ubuntu-22.04 # - macOS-latest arch: - x64 diff --git a/.github/workflows/test-macos.yml b/.github/workflows/test-macos.yml index 62525fa..eadca86 100644 --- a/.github/workflows/test-macos.yml +++ b/.github/workflows/test-macos.yml @@ -22,6 +22,7 @@ jobs: os: # - ubuntu-latest - macOS-latest +# - macos-14 arch: - x64 steps: @@ -33,7 +34,13 @@ jobs: if [ "$RUNNER_OS" = Linux ]; then sudo apt-get install clang-13 libclang-13-dev else #MacOS - brew install llvm@13 + #brew install llvm@13 #llvm@13 no more supported by brew + wget "https://github.com/llvm/llvm-project/releases/download/llvmorg-13.0.0/clang+llvm-13.0.0-x86_64-apple-darwin.tar.xz" + tar xJf https://github.com/llvm/llvm-project/releases/download/llvmorg-13.0.0/clang+llvm-13.0.0-x86_64-apple-darwin.tar.xz + rm https://github.com/llvm/llvm-project/releases/download/llvmorg-13.0.0/clang+llvm-13.0.0-x86_64-apple-darwin.tar.xz + ls + ln -s clang+llvm-13.0.0-x86_64-apple-darwin clang-13 + ls -l fi - uses: julia-actions/setup-julia@latest with: @@ -52,9 +59,12 @@ jobs: cmake -DClang_DIR=/usr/lib/llvm-13/lib/cmake/clang -B build -S . else #MacOS #cmake -DClang_DIR=/usr/local/Cellar/llvm@13/13.0.1_2/lib/cmake/clang/ -B build -S . - echo ls /opt/homebrew/opt/llvm@13/lib/cmake/clang - ls /opt/homebrew/opt/llvm@13/lib/cmake/clang - cmake -DClang_DIR=/opt/homebrew/opt/llvm@13/lib/cmake/clang -B build -S . + ls clang-13/ + ls `pwd`/clang-13 + ls clang-13/lib + ls clang-13/lib/cmake + ls clang-13/lib/cmake/clang + cmake -DClang_DIR=`pwd`/clang-13/lib/cmake/clang -B build -S . fi cmake --build build --verbose -j `nproc` PATH="`pwd`/build:$PATH"