Added macos build action #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: macos | |
on: | |
push: | |
paths-ignore: | |
- 'docs/**' | |
- 'packaging/**' | |
- 'util/**' | |
- 'uml/**' | |
- '**.md' | |
- '**.svg' | |
- '**.png' | |
branches-ignore: | |
- 'noactions/*' | |
pull_request: | |
paths-ignore: | |
- 'docs/**' | |
- 'packaging/**' | |
- 'util/**' | |
- 'uml/**' | |
- '**.md' | |
- '**.svg' | |
- '**.png' | |
branches-ignore: | |
- 'noactions/*' | |
jobs: | |
build-macos: | |
name: Build and test on macos | |
runs-on: macos-14 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install dependencies using homebrew | |
run: brew install llvm@17 libyaml cmake ccache | |
- name: Build and test | |
run: CC=/opt/homebrew/Cellar/llvm@17/17.0.6/bin/clang CXX=/opt/homebrew/Cellar@17/llvm/17.0.6/bin/clang++ CMAKE_PREFIX=/opt/homebrew/opt/llvm/lib/cmake/llvm LLVM_CONFIG=/opt/homebrew/opt/llvm/bin/llvm-config CMAKE_GENERATOR=Ninja make test |