Skip to content

Commit

Permalink
Update build-macos.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
baderouaich authored Oct 17, 2024
1 parent bcddea8 commit f6b26a4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,17 @@ jobs:
# macos image comes with installed clang, cmake .. (except ninja-build)
- name: Install deps
run: |
brew update
brew install ninja
brew install llvm@18
echo 'export PATH="/opt/homebrew/opt/llvm@18/bin:$PATH"' >> /Users/runner/.bash_profile
export LDFLAGS="-L/opt/homebrew/opt/llvm@18/lib"
export CPPFLAGS="-I/opt/homebrew/opt/llvm@18/include"
- name: Ensure deps are installed
run: |
cmake --version
clang++-18 --version
clang++ --version
ninja --version
- name: Print system information
Expand All @@ -38,7 +42,7 @@ jobs:
- name: Build & run CText flow
run: |
mkdir cmake-build-debug && cd cmake-build-debug
cmake .. -GNinja -DCMAKE_BUILD_TYPE=Debug -DENABLE_TESTS=ON -DCMAKE_CXX_COMPILER=clang++-18 -DCMAKE_C_COMPILER=clang-18
cmake .. -GNinja -DCMAKE_BUILD_TYPE=Debug -DENABLE_TESTS=ON -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang
export TESTS_BOT_TOKEN=${{ secrets.TESTS_BOT_TOKEN }}
ninja tests/all -j$(sysctl -n hw.logicalcpu)
ninja test

0 comments on commit f6b26a4

Please sign in to comment.