-
Notifications
You must be signed in to change notification settings - Fork 5
70 lines (58 loc) · 1.55 KB
/
Copy pathSampleFlow-test.yml
File metadata and controls
70 lines (58 loc) · 1.55 KB
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
name: SampleFlow CI test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install dependencies
run: |
sudo apt-get install doxygen graphviz libboost-all-dev numdiff -y
doxygen --version
- name: cmake
run: cmake .
- name: ctest
run: ctest --output-on-failure -j2
- name: doc
run: make doc
- name: style
run: |
wget -O astyle_2.04_linux.tar.gz https://sourceforge.net/projects/astyle/files/astyle/astyle%202.04/astyle_2.04_linux.tar.gz/download
tar -xvf astyle_2.04_linux.tar.gz
cd astyle/build/gcc && make && sudo make install
cd ../../..
./doc/indent
git --no-pager diff --exit-code
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: install dependencies
run: |
brew install cmake boost doxygen
git clone https://github.com/tjhei/numdiff.git
cd numdiff
./configure
make && sudo make install
cd ..
- name: cmake
run: cmake .
- name: ctest
run: ctest --output-on-failure -j2
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: setup-boost
run: |
$Env:BOOST_ROOT = $env:BOOST_ROOT_1_72_0
echo "boost dir" $env:BOOST_ROOT_1_72_0
dir $env:BOOST_ROOT
- name: cmake
run: cmake .
- name: ctest
run: ctest --output-on-failure -j2