Skip to content

Commit

Permalink
Change OS of CI to previous releases as latest one does not provide c…
Browse files Browse the repository at this point in the history
…lang-13
  • Loading branch information
grasph committed Jan 22, 2025
1 parent 2c86cf3 commit 837cdd8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ jobs:
- '1.10'
- 'nightly'
os:
- ubuntu-latest
# - ubuntu-latest
- ubuntu-22.04
# - macOS-latest
arch:
- x64
Expand Down
18 changes: 14 additions & 4 deletions .github/workflows/test-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
os:
# - ubuntu-latest
- macOS-latest
# - macos-14
arch:
- x64
steps:
Expand All @@ -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 clang+llvm-13.0.0-x86_64-apple-darwin.tar.xz
rm 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:
Expand All @@ -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"
Expand Down

0 comments on commit 837cdd8

Please sign in to comment.