-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 1.05 KB
/
tests.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
# SPDX-FileCopyrightText: 2024 Technical University of Munich
#
# SPDX-License-Identifier: BSD-3-Clause
name: unittest
on:
- push
jobs:
unittest:
name: unittest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- name: install-packages
run: |
sudo apt-get update -y
sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get install -y libomp-dev libopenmpi-dev openmpi-bin openmpi-common ninja-build
sudo apt-get install -y cxxtest
- name: build-nompi
run: |
mkdir build-nompi
cd build-nompi
cmake .. -GNinja -DUSE_MPI=OFF -DTESTING=ON
ninja
ctest --rerun-failed --output-on-failure
cd ..
- name: build-mpi
run: |
mkdir build-mpi
cd build-mpi
cmake .. -GNinja -DUSE_MPI=ON -DTESTING=ON
ninja
ctest --rerun-failed --output-on-failure
cd ..