-
Notifications
You must be signed in to change notification settings - Fork 29
85 lines (78 loc) · 2.91 KB
/
test.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
name: Test Kassiopeia
# as described on https://katrin-experiment.github.io/Kassiopeia/compiling.html
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# Keep the following in sync with Documentation/gh-pages/source/setup_manual.rst !
jobs:
ubuntu_20_04:
strategy:
matrix:
use_clang: [true, false]
runs-on: ubuntu-latest
container: ubuntu:20.04
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
# Set up variables to avoid interactive timezone selection
# Source: https://serverfault.com/a/992421
export DEBIAN_FRONTEND=noninteractive
export TZ=Etc/UTC
apt-get update -y && apt-get install -y \
build-essential cmake cmake-curses-gui \
libboost-all-dev libfftw3-dev libgsl-dev libhdf5-dev liblog4cxx-dev libomp-dev libopenmpi-dev \
libsqlite3-dev libssl-dev libvtk7-dev libxml2-dev ocl-icd-opencl-dev zlib1g-dev
- name: Install root
run: |
apt install -y wget
wget https://root.cern/download/root_v6.24.08.Linux-ubuntu20-x86_64-gcc9.4.tar.gz
tar -xf root_v6.24.08.Linux-ubuntu20-x86_64-gcc9.4.tar.gz
- name: Build code
run: |
source root/bin/thisroot.sh
if ${{ matrix.use_clang }}; then
echo "Using Clang."
apt install -y clang
export CC=/usr/bin/clang
export CXX=/usr/bin/clang++
fi
KASSIOPEIA_CUSTOM_CMAKE_ARGS="-DENABLE_SANITIZE_ADDRESSES=ON" ./setup.sh
shell: bash
- name: Launch environment and run tests
run: |
source root/bin/thisroot.sh && source install/bin/kasperenv.sh && ASAN_OPTIONS=detect_leaks=0 UnitTestKasper
shell: bash
fedora_40:
strategy:
matrix:
use_clang: [false] # FIXME add "true" after solving https://github.com/KATRIN-Experiment/Kassiopeia/issues/87
runs-on: ubuntu-latest
container: fedora:40
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
dnf install -y \
@development-tools cmake cmake-gui \
root-core root-io-xmlparser root-minuit2 root-spectrum root-genvector \
vtk vtk-qt \
boost-devel fftw-devel gsl-devel hdf5-devel libomp-devel liburing-devel libxml2-devel log4cxx-devel \
ocl-icd-devel openmpi-devel openssl-devel sqlite-devel vtk-devel zlib-devel \
libasan
- name: Build code
run: |
if ${{ matrix.use_clang }}; then
echo "Using Clang."
dnf install -y clang
export CC=/usr/bin/clang
export CXX=/usr/bin/clang++
fi
KASSIOPEIA_CUSTOM_CMAKE_ARGS="-DENABLE_SANITIZE_ADDRESSES=ON" ./setup.sh
shell: bash
- name: Launch environment and run tests
run: |
source install/bin/kasperenv.sh && ASAN_OPTIONS=detect_leaks=0 UnitTestKasper
shell: bash