Skip to content

Commit 3421bf4

Browse files
committed
Revert CI to latest MacOS and Linux after the fix for LLVM >= 16
1 parent e68c127 commit 3421bf4

File tree

2 files changed

+5
-14
lines changed

2 files changed

+5
-14
lines changed

.github/workflows/test-linux.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ jobs:
1919
version:
2020
- '1.10'
2121
os:
22-
# - ubuntu-latest
23-
- ubuntu-22.04
22+
- ubuntu-latest
2423
# - macOS-latest
2524
arch:
2625
- x64

.github/workflows/test-macos.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ jobs:
2020
- '1.10'
2121
os:
2222
# - ubuntu-latest
23-
# - macOS-latest
24-
- macos-13
23+
- macOS-latest
2524
arch:
2625
- x64
2726
steps:
@@ -32,15 +31,8 @@ jobs:
3231
run: |
3332
if [ "$RUNNER_OS" = Linux ]; then
3433
sudo apt-get install clang-13 libclang-13-dev
35-
#else #MacOS
36-
# #brew install llvm@13 #llvm@13 no more supported by brew
37-
# wget "https://github.com/llvm/llvm-project/archive/refs/tags/llvmorg-13.0.1.tar.gz"
38-
# tar xzf llvmorg-13.0.1.tar.gz
39-
# rm llvmorg-13.0.1.tar.gz
40-
# export CMAKE_INSTALL_MODE=SYMLINK #use symlinks to reduce disk space usage
41-
# cmake -S llvm-project-llvmorg-13.0.1/llvm -B llvm-build -DCMAKE_INSTALL_PREFIX=`pwd`/clang-13 -DLLVM_ENABLE_PROJECTS="clang" -DBUILD_SHARED_LIBS=on -DLLVM_BUILD_LLVM_DYLIB=on -DCMAKE_BUILD_TYPE=Release
42-
# cmake --build llvm-build --verbose -j `sysctl -n hw.logicalcpu`
43-
# cmake --install llvm-build
34+
else #MacOS
35+
brew install llvm@13
4436
fi
4537
- uses: julia-actions/setup-julia@latest
4638
with:
@@ -59,7 +51,7 @@ jobs:
5951
cmake -DClang_DIR=/usr/lib/llvm-13/lib/cmake/clang -DCMAKE_INSTALL_PREFIX="$PWD" -B build -S .
6052
cmake --build build --verbose -j `nproc`
6153
else
62-
cmake -DBUILD_LLVM=ON -DCMAKE_INSTALL_PREFIX="$PWD" -B build -S .
54+
cmake -DClang_DIR=/opt/homebrew/opt/llvm@13/lib/cmake/clang -B build -S .
6355
cmake --build build --verbose -j `sysctl -n hw.logicalcpu`
6456
fi
6557
cmake --install build

0 commit comments

Comments
 (0)