forked from AIDASoft/podio
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (33 loc) · 1.03 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
name: linux
on: [push, pull_request]
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sio: [ON]
LCG: ["LCG_99/x86_64-centos7-gcc8-opt",
"LCG_99/x86_64-centos7-clang10-opt",
"LCG_99/x86_64-centos8-gcc10-opt",
"dev3/x86_64-centos7-clang12-opt",
"dev4/x86_64-centos7-gcc11-opt",
"dev4/x86_64-centos7-clang12-opt"]
steps:
- uses: actions/checkout@v2
- uses: cvmfs-contrib/github-action-cvmfs@v2
- uses: aidasoft/run-lcg-view@v2
with:
release-platform: ${{ matrix.LCG }}
run: |
mkdir build install
cd build
cmake -DENABLE_SIO=${{ matrix.sio }} \
-DCMAKE_INSTALL_PREFIX=../install \
-DCMAKE_CXX_STANDARD=17 \
-DCMAKE_CXX_FLAGS=" -fdiagnostics-color=always -Werror " \
-DUSE_EXTERNAL_CATCH2=OFF \
-G Ninja ..
ninja -k0
ctest --output-on-failure
ninja install