-
Notifications
You must be signed in to change notification settings - Fork 7
63 lines (57 loc) · 1.91 KB
/
core-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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: core-macos
on:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: configure OS
run: |
# os level stuff
set -x
brew install googletest
- name: install BLAS++
run: |
cd ..
git clone https://github.com/icl-utk-edu/blaspp.git
mkdir blaspp-build
cd blaspp-build
pwd
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`pwd`/../blaspp-install -Dbuild_tests=OFF ../blaspp
make -j2 install
- name: install Random123
run: |
cd ..
git clone https://github.com/DEShawResearch/Random123.git
cd Random123/
mkdir -p `pwd`/../Random123-install/include
cp -rp include/Random123 `pwd`/../Random123-install/include/
- name: build and test RandBLAS (release)
run: |
cd ..
mkdir RandBLAS-build
cd RandBLAS-build
cmake -DCMAKE_BUILD_TYPE=Release \
-Dblaspp_DIR=`pwd`/../blaspp-install/lib/cmake/blaspp/ \
-DRandom123_DIR=`pwd`/../Random123-install/include/ \
-DCMAKE_INSTALL_PREFIX=`pwd`/../RandBLAS-install \
-DCMAKE_BINARY_DIR=`pwd` \
`pwd`/../RandBLAS
make -j2 install
ctest --output-on-failure
- name: build and test RandBLAS (Debug/asan)
run: |
cd ..
mkdir RandBLAS-asan-build
cd RandBLAS-asan-build
cmake -DCMAKE_BUILD_TYPE=Debug \
-DSANITIZE_ADDRESS=ON \
-Dblaspp_DIR=`pwd`/../blaspp-install/lib/cmake/blaspp/ \
-DRandom123_DIR=`pwd`/../Random123-install/include/ \
-DCMAKE_INSTALL_PREFIX=`pwd`/../RandBLAS-install \
-DCMAKE_BINARY_DIR=`pwd` \
`pwd`/../RandBLAS
make -j2 install
ctest --output-on-failure