Skip to content

Documentation: Fix 'docker tag' example #170

Documentation: Fix 'docker tag' example

Documentation: Fix 'docker tag' example #170

Workflow file for this run

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