forked from bingmann/cobs
-
Notifications
You must be signed in to change notification settings - Fork 2
75 lines (65 loc) · 1.59 KB
/
build.yaml
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
64
65
66
67
68
69
70
71
72
73
74
75
name: COBS builds
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
linux_build:
name: Build and test linux
runs-on: ubuntu-20.04
steps:
- name: Install dependencies
run: |
sudo apt-get install cmake
- name: Check out code for the build
uses: actions/checkout@v2
with:
submodules: recursive
- name: Build and test
run: |
mkdir build
cd build
cmake ..
make
make test
mac_build_gcc:
name: Build and test Mac OS X with gcc
runs-on: macos-11
steps:
- name: Install dependencies
run: |
brew install cmake gcc@11
- name: Check out code for the build
uses: actions/checkout@v2
with:
submodules: recursive
- name: Build and test
run: |
mkdir build
cd build
cmake -DCMAKE_C_COMPILER=gcc-11 -DCMAKE_CXX_COMPILER=g++-11 ..
make
make test
mac_build_clang:
name: Build and test Mac OS X with clang
runs-on: macos-11
steps:
- name: Install dependencies
run: |
brew install cmake boost@1.76
- name: Check out code for the build
uses: actions/checkout@v2
with:
submodules: recursive
- name: Build and test
run: |
# set up some variables so that CMake can find boost
export BOOST_ROOT="/usr/local/opt/boost@1.76"
mkdir build
cd build
cmake -DNOOPENMP=1 -DSKIP_PYTHON=1 ..
make
make test