-
Notifications
You must be signed in to change notification settings - Fork 89
81 lines (68 loc) · 2.19 KB
/
kahypar_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
name: KaHyPar CI
on: [ push, pull_request ]
jobs:
kahypar_debug_tests:
runs-on: ubuntu-latest
env:
BOOST_ROOT : "/usr/local/share/boost/1.72.0"
CI_ACTIVE : 1
BUILD_TYPE : "Debug"
COV : "ON"
steps:
- name: Checkout HEAD
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install libboost-program-options-dev lcov gcovr libpython3-all-dev cppcheck
- name: Setup KaHyPar
run: |
git submodule init
git submodule update
rm -rf debug && mkdir debug && cd debug
cmake .. -DCMAKE_BUILD_TYPE="$BUILD_TYPE" -DKAHYPAR_USE_GCOV="$COV" -DKAHYPAR_ENABLE_HEAVY_PREPROCESSING_ASSERTIONS=OFF
- name: Install KaHyPar & Run Tests
run: |
cd debug
make clean all
- 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"
kahypar_regression_tests:
runs-on: ubuntu-latest
env:
BOOST_ROOT : "/usr/local/share/boost/1.72.0"
CI_ACTIVE : 1
BUILD_TYPE : "Release"
COV : "OFF"
steps:
- name: Checkout HEAD
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install libboost-program-options-dev lcov gcovr libpython3-all-dev cppcheck
- name: Setup KaHyPar
run: |
git submodule init
git submodule update
rm -rf build && mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE="$BUILD_TYPE" -DKAHYPAR_USE_GCOV="$COV"
- name: Install Regression Tests
run: |
cd build
make integration_tests
- name: Run Regression Tests
run: |
cd build
../scripts/run_regression_tests.sh