draft tutorial #280
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: OS X | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
env: | |
BUILD_TYPE: Debug | |
INSTALL_LOCATION: .local | |
jobs: | |
build: | |
runs-on: macos-latest | |
if: "!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[ci skip]')" | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: install dependencies | |
run: | | |
brew install libomp | |
- name: configure | |
run: | | |
# NOTE: AppleClang fails to find OpenMP | |
# and GCC fails to link Halide generators since Halide was built against libc++ | |
# ... so... we stick to LLVM/Clang | |
cmake -Bbuild \ | |
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \ | |
-DCMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/$INSTALL_LOCATION \ | |
-DCMAKE_C_COMPILER="$(brew --prefix llvm@14)/bin/clang" \ | |
-DCMAKE_CXX_COMPILER="$(brew --prefix llvm@14)/bin/clang++" | |
- name: build | |
run: cmake --build build -j4 | |
- name: run tests | |
run: | | |
cd build | |
ctest -VV | |
- name: install project | |
run: cmake --build build --target install |