Skip to content

draft tutorial

draft tutorial #280

Workflow file for this run

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