-
Notifications
You must be signed in to change notification settings - Fork 9
182 lines (175 loc) · 6.16 KB
/
main.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
name: Compile and run units tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions: read-all
jobs:
build-macos:
name: macOS Build
runs-on: macos-15
strategy:
matrix:
compiler:
- { name: AppleClang, cc: clang, cxx: clang++ }
- { name: Clang, cc: /opt/homebrew/opt/llvm/bin/clang, cxx: /opt/homebrew/opt/llvm/bin/clang++ }
build-mode: [Release]
steps:
- name: Install dependencies
run: brew install llvm tbb open-mpi google-sparsehash
- name: Checkout HEAD
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 1
submodules: recursive
- name: Configure
run: >-
cmake -B ${{github.workspace}}/build
-DCMAKE_BUILD_TYPE=${{matrix.build-mode}}
-DCMAKE_C_COMPILER=${{matrix.compiler.cc}}
-DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}}
-DKAMINPAR_ASSERTION_LEVEL=normal
-DKAMINPAR_BUILD_APPS=On
-DKAMINPAR_BUILD_TESTS=On
-DKAMINPAR_BUILD_DISTRIBUTED=On
-DKAMINPAR_BUILD_WITH_DEBUG_SYMBOLS=Off
-DKAMINPAR_BUILD_WITH_ASAN=On
-DKAMINPAR_BUILD_WITH_UBSAN=On
- name: Build
run: >-
cmake --build ${{github.workspace}}/build
--config Release
--parallel 3
- name: Run KaMinPar on a Dummy Graph
run: >-
${{github.workspace}}/build/apps/KaMinPar
-G ${{github.workspace}}/misc/rgg2d.metis
-k 2
- name: Run dKaMinPar on a Dummy Graph
run: >-
${{github.workspace}}/build/apps/dKaMinPar
-G ${{github.workspace}}/misc/rgg2d.metis
-k 2
env: # We leak a few bytes due to OpenMPI
ASAN_OPTIONS: detect_leaks=0
- name: Run unit tests (AppleClang build)
if: matrix.compiler.name == 'AppleClang'
working-directory: ${{github.workspace}}/build
run: ctest --output-on-failure
env:
ASAN_OPTIONS: detect_leaks=0
build-linux-gcc:
name: Linux GCC Build
runs-on: ubuntu-24.04
strategy:
matrix:
compiler:
- { name: GNU, cc: gcc, cxx: g++ }
build-mode: [Debug]
steps:
- name: Install dependencies
run: sudo apt-get install -y libtbb-dev libhwloc-dev mpi libopenmpi-dev libsparsehash-dev
- name: Checkout HEAD
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 1
submodules: recursive
- name: Configure
run: >-
cmake -B ${{github.workspace}}/build
-DCMAKE_BUILD_TYPE=${{matrix.build-mode}}
-DCMAKE_C_COMPILER=${{matrix.compiler.cc}}
-DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}}
-DKAMINPAR_ASSERTION_LEVEL=light
-DKAMINPAR_BUILD_DISTRIBUTED=On
-DKAMINPAR_BUILD_WITH_DEBUG_SYMBOLS=Off
- name: GCC Build
run: >-
cmake --build ${{github.workspace}}/build
--config ${{matrix.build-mode}}
--parallel 4
build-and-run-linux-clang:
name: Linux Build
runs-on: ubuntu-24.04
strategy:
matrix:
compiler:
- { name: Clang, cc: clang, cxx: clang++ }
build-mode: [Release]
steps:
- name: Install dependencies
run: sudo apt-get install -y libtbb-dev libhwloc-dev mpi libopenmpi-dev libsparsehash-dev
- name: Checkout HEAD
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 1
submodules: recursive
- name: Configure
run: >-
cmake -B ${{github.workspace}}/build
-DCMAKE_BUILD_TYPE=${{matrix.build-mode}}
-DCMAKE_C_COMPILER=${{matrix.compiler.cc}}
-DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}}
-DKAMINPAR_ASSERTION_LEVEL=normal
-DKAMINPAR_BUILD_APPS=On
-DKAMINPAR_BUILD_TESTS=On
-DKAMINPAR_BUILD_DISTRIBUTED=On
-DKAMINPAR_BUILD_WITH_DEBUG_SYMBOLS=Off
-DKAMINPAR_BUILD_WITH_ASAN=On
-DKAMINPAR_BUILD_WITH_UBSAN=On
- name: Clang Build
run: >-
cmake --build ${{github.workspace}}/build
--config ${{matrix.build-mode}}
--parallel 4
- name: Run KaMinPar on a Dummy Graph
run: >-
${{github.workspace}}/build/apps/KaMinPar
-G ${{github.workspace}}/misc/rgg2d.metis
-k 2
- name: Run dKaMinPar on a Dummy Graph
run: >-
${{github.workspace}}/build/apps/dKaMinPar
-G ${{github.workspace}}/misc/rgg2d.metis
-k 2
env: # We leak a few bytes due to OpenMPI
ASAN_OPTIONS: detect_leaks=0
- name: Run unit tests (Clang build)
working-directory: ${{github.workspace}}/build
run: ctest --output-on-failure
env:
ASAN_OPTIONS: detect_leaks=0
# Make sure that our code compiles with all assertions and experimental features enabled
build-with-heavy-assertions-and-experimental-features:
name: macOS Build with Heavy Assertions and Experimental Features
runs-on: macos-15 # fastest runner to compile the code
strategy:
matrix:
compiler:
- { name: AppleClang, cc: clang, cxx: clang++ }
build-mode: [Release]
steps:
- name: Install dependencies
run: brew install llvm tbb open-mpi google-sparsehash
- name: Checkout HEAD
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 1
submodules: recursive
- name: Configure
run: >-
cmake -B ${{github.workspace}}/build
-DCMAKE_BUILD_TYPE=${{matrix.build-mode}}
-DCMAKE_C_COMPILER=${{matrix.compiler.cc}}
-DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}}
-DKAMINPAR_ASSERTION_LEVEL=heavy
-DKAMINPAR_BUILD_EXPERIMENTAL_FEATURES=On
-DKAMINPAR_BUILD_APPS=On
-DKAMINPAR_BUILD_TESTS=On
-DKAMINPAR_BUILD_DISTRIBUTED=On
- name: Build
run: >-
cmake --build ${{github.workspace}}/build
--config Release
--parallel 3