-
Notifications
You must be signed in to change notification settings - Fork 154
39 lines (37 loc) · 1.04 KB
/
macos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: macOS build
on: [push, pull_request]
jobs:
build_appleclang:
name: AppleClang [macOS]
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: install dependencies
run: |
set +e
brew update
brew install cmake
brew install libomp
brew install boost
set -e
- name: build
run: |
mkdir build && cd build
cmake .. \
-DWITH_OPENCL_BACKEND=OFF \
-DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/build/install
make -j 2 install VERBOSE=ON
- name: build CPU tests
run: |
mkdir build/tests-cpu && cd build/tests-cpu
cmake \
-DACPP_TARGETS=omp.library-only \
-DAdaptiveCpp_DIR=${GITHUB_WORKSPACE}/build/install/lib/cmake/AdaptiveCpp \
${GITHUB_WORKSPACE}/tests
make -j 2 VERBOSE=ON
- name: run CPU tests
run: |
cd ${GITHUB_WORKSPACE}/build/tests-cpu
LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/build/install/lib ./sycl_tests