Skip to content

Commit

Permalink
Update cmake-multi-platform.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
grasph authored Mar 23, 2024
1 parent ccdfb3e commit 75d5627
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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"
Expand Down

0 comments on commit 75d5627

Please sign in to comment.