Skip to content

Commit

Permalink
CI: add github action workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
andresailer authored and tmadlener committed Aug 25, 2021
1 parent 442d5cd commit 0a9ff65
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 19 deletions.
12 changes: 0 additions & 12 deletions .github/scripts/compile_and_test.sh

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/coverity.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: coverity

on:
schedule:
- cron: '0 0 * * *'

jobs:
run-coverity:
runs-on: ubuntu-latest
if: github.repository == 'iLCSoft/MarlinReco'
steps:
- uses: actions/checkout@v2
- uses: cvmfs-contrib/github-action-cvmfs@v2
- uses: aidasoft/run-lcg-view@v3
with:
coverity-cmake-command: 'cmake -C $ILCSOFT/ILCSoft.cmake ..'
coverity-project: 'iLCSoft%2FMarlinReco'
coverity-project-token: ${{ secrets.MARLINRECO_COVERITY_TOKEN }}
github-pat: ${{ secrets.READ_COVERITY_IMAGE }}
view-path: "/cvmfs/clicdp.cern.ch/iLCSoft/lcg/100/nightly/x86_64-centos7-gcc10-opt"
setup-script: "init_ilcsoft.sh"
23 changes: 16 additions & 7 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,23 @@ jobs:
strategy:
fail-fast: false
matrix:
COMPILER: [gcc, llvm]
COMPILER: [gcc10, clang11]
LCG: [100]
include:
- COMPILER: gcc8
LCG: 99python2

steps:
- uses: actions/checkout@v2
- uses: cvmfs-contrib/github-action-cvmfs@v2
- name: Start container
run: |
docker run -it --name CI_container -v ${GITHUB_WORKSPACE}:/Package -v /cvmfs:/cvmfs:shared -e COMPILER=${{ matrix.COMPILER }} -d ghcr.io/aidasoft/centos7:latest /bin/bash
- name: Compile and test
run: |
docker exec CI_container /bin/bash -c "./Package/.github/scripts/compile_and_test.sh"
- uses: aidasoft/run-lcg-view@v3
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

0 comments on commit 0a9ff65

Please sign in to comment.