-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (42 loc) · 1.35 KB
/
linux.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
name: linux
on: [push, pull_request]
jobs:
centos7:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
COMPILER: [gcc10, clang11]
LCG: [100]
steps:
- uses: actions/checkout@v3
- uses: cvmfs-contrib/github-action-cvmfs@v3
- uses: aidasoft/run-lcg-view@v4
with:
view-path: "/cvmfs/clicdp.cern.ch/iLCSoft/lcg/${{ matrix.LCG }}/nightly/x86_64-centos7-${{ matrix.COMPILER }}-opt"
setup-script: "init_ilcsoft.sh"
run: |
mkdir build
cd build
echo "::group::Run CMake"
cmake -GNinja \
-C ${ILCSOFT}/ILCSoft.cmake \
-DCMAKE_CXX_FLAGS=" -fdiagnostics-color=always " \
-DCMAKE_INSTALL_PREFIX=../install \
..
echo "::endgroup::" && echo "::group::Build"
ninja -k0
echo "::endgroup::" && echo "::group::Install"
ninja install
echo "::endgroup::" && echo "::group::Build example processors"
cd ../install
export CMAKE_PREFIX_PATH=$(pwd):${CMAKE_PREFIX_PATH}
cd ../example_stdhep
mkdir build
cd build
cmake -GNinja \
-C ${ILCSOFT}/ILCSoft.cmake \
-DCMAKE_CXX_FLAGS=" -fdiagnostics-color=always " \
-DCMAKE_INSTALL_PREFIX=../install \
..
ninja -k0