-
Notifications
You must be signed in to change notification settings - Fork 4
103 lines (93 loc) · 2.47 KB
/
check_pre-merge_master.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: master pre-merge check
on:
push:
branches:
- master
- stable_v*
pull_request:
branches:
- master
- stable_v*
env:
CMAKE_VERSION: 3.17.2
jobs:
cmake-win-test:
name: cmake build-win
runs-on: windows-2019
strategy:
matrix:
generator: ['Visual Studio 16 2019', 'MSYS Makefiles']
shared: [on, off]
steps:
- uses: actions/checkout@v2
- name: cmake_version
run: cmake --version
- name: cmake_generage
run: cmake -S . -B build -G "${{ matrix.generator }}" -DENABLE_SHARED=${{ matrix.shared }} -DENABLE_TESTS=on
- name: cmake_build
run: cmake --build build --config Release --parallel 4
- name: ctest
run: |
cd build
ctest -C Release --output-on-failure
cmake-mac-test:
name: cmake build-mac
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-10.15]
# os: [macos-10.15, macos-11.0]
steps:
- uses: actions/checkout@v2
- name: cmake_version
run: cmake --version
- name: cmake_generage-macos
run: cmake -S . -B build -G "Unix Makefiles" -DENABLE_SHARED=on -DENABLE_ELEMENTS=on
- name: cmake_build
run: cmake --build build --config Release --parallel 4
- name: ctest
run: |
cd build
ctest -C Release --output-on-failure
- name: lint_check
run: ./tools/lint_quiet.sh
cmake-ubuntu-test:
name: cmake build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-18.04]
shared: [on, off]
elements: [on, off]
exclude:
- os: ubuntu-18.04
elements: off
steps:
- uses: actions/checkout@v2
- name: dump version
run: |
cmake --version
gcc --version
- name: cmake_configure
run: |
cmake -S . -B build -G "Unix Makefiles" -DENABLE_SHARED=${{ matrix.shared }} -DENABLE_ELEMENTS=${{ matrix.elements }} -DTARGET_RPATH=./build/Release
- name: cmake-build
run: cmake --build build --config Release --parallel 4
- name: lint_check
run: ./tools/lint_quiet.sh
- name: test
run: |
cd build
ctest -C Release --output-on-failure
cd ..
doxygen-ubuntu:
name: doxygen-check
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: install_doxygen
run: sudo apt install doxygen graphviz
- name: doxygen_check
run: |
cd doc
doxygen Doxyfile_quiet_all