From 9c16cac9eae05317958fa887dfe6d8d924f4b7f9 Mon Sep 17 00:00:00 2001 From: Thomas Madlener Date: Fri, 2 Dec 2022 09:49:23 +0100 Subject: [PATCH] Create github actions based CI workflow --- .github/workflows/linux.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/linux.yml diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml new file mode 100644 index 0000000..bc00e7b --- /dev/null +++ b/.github/workflows/linux.yml @@ -0,0 +1,26 @@ +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 + cmake -GNinja -C ${ILCSOFT}/ILCSoft.cmake -DCMAKE_CXX_FLAGS=" -fdiagnostics-color=always " .. + ninja -k0 + ctest --output-on-failure + ninja install