-
Notifications
You must be signed in to change notification settings - Fork 27
256 lines (217 loc) · 7.23 KB
/
master_ci.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
name: Mt-KaHyPar Master CI
#on:
# push:
# branches:
# - master
# pull_request:
# branches:
# - master
jobs:
mt_kahypar_compiler_version_test:
name: Ubuntu Build
strategy:
matrix:
compiler: [ { os: ubuntu-20.04, cpp: g++-9, cc: gcc-9, install_cmd: g++-9 gcc-9 },
{ os: ubuntu-20.04, cpp: g++-10, cc: gcc-10, install_cmd: g++-10 gcc-10 },
{ os: ubuntu-22.04, cpp: g++-11, cc: gcc-11, install_cmd: g++-11 gcc-11 },
{ os: ubuntu-22.04, cpp: g++-12, cc: gcc-12, install_cmd: g++-12 gcc-12 },
{ os: ubuntu-22.04, cpp: clang++, cc: clang, install_cmd: clang } ]
runs-on: ${{ matrix.compiler.os }}
env:
BOOST_ROOT : "/usr/local/share/boost/1.72.0"
CI_ACTIVE : 1
steps:
- name: Checkout HEAD
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Install Dependencies
run: |
sudo apt-get install libtbb-dev libboost-program-options-dev libhwloc-dev lcov gcovr ${{ matrix.compiler.install_cmd }}
- name: Install Mt-KaHyPar Test Suite
env:
CC: ${{ matrix.compiler.cc }}
CXX: ${{ matrix.compiler.cpp }}
run: |
git submodule update --init --recursive
rm -rf build
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=RELEASE -DKAHYPAR_CI_BUILD=ON
make -j2 MtKaHyPar
mt_kahypar_test_suite:
name: Test Suite
runs-on: ubuntu-20.04
env:
BOOST_ROOT : "/usr/local/share/boost/1.72.0"
CI_ACTIVE : 1
steps:
- name: Checkout HEAD
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Install Dependencies
run: |
sudo apt-get install libtbb-dev libhwloc-dev libboost-program-options-dev lcov gcovr
- name: Install Mt-KaHyPar Test Suite
run: |
git submodule update --init --recursive
rm -rf debug
mkdir debug
cd debug
cmake .. -DCMAKE_BUILD_TYPE=DEBUG -DKAHYPAR_USE_GCOV=ON -DKAHYPAR_CI_BUILD=ON
make -j2 mt_kahypar_tests;
- name: Run Mt-KaHyPar Tests
run: |
cd debug
./tests/mt_kahypar_tests;
- name: Report Code Coverage
run: |
cd debug
lcov --directory . --capture --output-file coverage.info;
lcov --remove coverage.info '/usr/*' --output-file coverage.info;
lcov --list coverage.info;
gcovr -r ../ -x > report.xml;
cd ..
bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"
mt_kahypar_integration_tests:
name: Integration Tests
runs-on: ubuntu-20.04
env:
BOOST_ROOT : "/usr/local/share/boost/1.72.0"
CI_ACTIVE : 1
steps:
- name: Checkout HEAD
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Install Dependencies
run: |
sudo apt-get install libtbb-dev libhwloc-dev libboost-program-options-dev lcov gcovr
- name: Install Mt-KaHyPar Integration Tests
run: |
git submodule update --init --recursive
rm -rf build
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=RELEASE -DKAHYPAR_CI_BUILD=ON
make -j2 MtKaHyPar
make -j2 VerifyPartition
make -j2 GridGraphGenerator
make -j2 FixedVertexFileGenerator
- name: Run Mt-KaHyPar Integration Tests
run: |
./tests/end_to_end/integration_tests.py
mt_kahypar_c_interface_tests:
name: C Interface Tests
runs-on: ubuntu-20.04
env:
BOOST_ROOT : "/usr/local/share/boost/1.72.0"
CI_ACTIVE : 1
steps:
- name: Checkout HEAD
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Install Dependencies
run: |
sudo apt-get install libtbb-dev libhwloc-dev libboost-program-options-dev lcov gcovr
- name: Run Mt-KaHyPar C Library Interface Tests
run: |
git submodule update --init --recursive
rm -rf build
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=RELEASE -DKAHYPAR_CI_BUILD=ON
make -j2 interface_test
mt_kahypar_python_interface_tests:
name: Python Interface Tests
runs-on: ubuntu-20.04
env:
BOOST_ROOT : "/usr/local/share/boost/1.72.0"
CI_ACTIVE : 1
steps:
- name: Checkout HEAD
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Install Dependencies
run: |
sudo apt-get install libtbb-dev libhwloc-dev libboost-program-options-dev lcov gcovr
- name: Build Mt-KaHyPar Python Interface
run: |
git submodule update --init --recursive
rm -rf build
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=RELEASE -DKAHYPAR_CI_BUILD=ON
make mtkahypar_python -j2
- name: Run Mt-KaHyPar Python Interface Tests
run: |
cd python/tests
cp ../../build/python/mtkahypar*.so mtkahypar.so
python3 test_mtkahypar.py -v
mt_kahypar_windows_build:
name: Windows Build
runs-on: windows-latest
env:
CI_ACTIVE : 1
steps:
- name: Checkout HEAD
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Setup MSYS2
uses: msys2/setup-msys2@v2
with:
install: git make
- name: Install Boost and TBB
shell: msys2 {0}
run: |
pacman --noconfirm -S mingw-w64-x86_64-boost mingw-w64-x86_64-tbb mingw-w64-x86_64-cmake mingw-w64-x86_64-gcc
- name: Put MSYS2_MinGW64 on Path
run: |
echo "${{ runner.temp }}/msys64/mingw64" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Rename TBB library file
run: |
Ren ${{ runner.temp }}/msys64/mingw64/lib/libtbb12.dll.a ${{ runner.temp }}/msys64/mingw64/lib/libtbb.dll.a
- name: Install Mt-KaHyPar Multilevel Tests
shell: msys2 {0}
run: |
git submodule update --init --recursive
rm -rf build
mkdir build
cd build
export CMAKE_GENERATOR="MSYS Makefiles"
/mingw64/bin/cmake .. -DCMAKE_BUILD_TYPE=RELEASE -DKAHYPAR_CI_BUILD=ON -DKAHYPAR_ENABLE_HIGHEST_QUALITY_FEATURES=OFF -DKAHYPAR_ENABLE_LARGE_K_PARTITIONING_FEATURES=OFF
make -j2 mt_kahypar_tests
- name: Run Mt-KaHyPar Tests
shell: msys2 {0}
run: |
cd build
./tests/mt_kahypar_tests
mt_kahypar_macos_build:
name: MacOS Build
runs-on: macos-latest
env:
CI_ACTIVE : 1
steps:
- name: Checkout HEAD
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Install Dependencies
run: |
brew install tbb boost hwloc lcov gcovr
- name: Install Mt-KaHyPar Multilevel Tests
run: |
git submodule update --init --recursive
rm -rf build
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=RELEASE -DKAHYPAR_CI_BUILD=ON
make -j2 mt_kahypar_tests
- name: Run Mt-KaHyPar Tests
run: |
cd build
./tests/mt_kahypar_tests