-
Notifications
You must be signed in to change notification settings - Fork 37
71 lines (69 loc) · 2.35 KB
/
lcg_linux_with_podio.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
name: lcg_linux_with_podio
on: [push, pull_request]
jobs:
build-and-test-with-podio:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
LCG: ["dev3/x86_64-el9-clang16-opt",
"dev4/x86_64-el9-clang16-opt"]
CXX_STANDARD: [20]
include:
- LCG: "dev4/x86_64-centos7-gcc11-opt"
CXX_STANDARD: 17
- LCG: "LCG_102/x86_64-centos7-clang12-opt"
CXX_STANDARD: 17
- LCG: "LCG_102/x86_64-centos8-gcc11-opt"
CXX_STANDARD: 17
steps:
- uses: actions/checkout@v3
- uses: cvmfs-contrib/github-action-cvmfs@v3
- uses: aidasoft/run-lcg-view@v4
with:
release-platform: ${{ matrix.LCG }}
run: |
STARTDIR=$(pwd)
echo "::group::Build podio"
echo "Building podio @"$(git log -1 --format=%H)
git clone --depth 1 https://github.com/AIDASoft/podio
cd podio
mkdir build install
cd build
cmake .. -DCMAKE_CXX_STANDARD=${{ matrix.CXX_STANDARD }} \
-DENABLE_SIO=ON \
-DBUILD_TESTING=OFF \
-DCMAKE_INSTALL_PREFIX=$(pwd)/../install \
-G Ninja
ninja -k0
ninja install
cd ..
export ROOT_INCLUDE_PATH=$(pwd)/install/include:$ROOT_INCLUDE_PATH:$CPATH
unset CPATH
export CMAKE_PREFIX_PATH=$(pwd)/install:$CMAKE_PREFIX_PATH
export LD_LIBRARY_PATH=$(pwd)/install/lib:$(pwd)/install/lib64:$LD_LIBRARY_PATH
echo "::endgroup::"
echo "::group::Build edm4hep"
cd $STARTDIR
echo "Building edm4hep"
mkdir build install
cd build
cmake .. -DCMAKE_CXX_STANDARD=${{ matrix.CXX_STANDARD }} \
-DCMAKE_INSTALL_PREFIX=../install \
-DUSE_EXTERNAL_CATCH2=OFF \
-G Ninja
ninja -k0
ctest --output-on-failure
ninja install
cd -
echo "::endgroup::"
echo "::group::Test downstream usage"
export CMAKE_PREFIX_PATH=$PWD/install:$CMAKE_PREFIX_PATH
cd test/downstream-project-cmake-test
mkdir build
cd build
cmake .. -DCMAKE_CXX_STANDARD=${{ matrix.CXX_STANDARD }} \
-DCMAKE_INSTALL_PREFIX=../install \
-G Ninja
ninja -k0
echo "::endgroup::"