Skip to content

Commit

Permalink
Adding OS(centos7,alma9,ubuntu) in CI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kjvbrt committed Dec 12, 2023
1 parent ec34141 commit d5935d4
Showing 1 changed file with 25 additions and 11 deletions.
36 changes: 25 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: linux
name: 'Build and Test'

on: [push, pull_request]

Expand All @@ -8,42 +8,56 @@ jobs:
strategy:
fail-fast: false
matrix:
SETUP: ['/cvmfs/sw.hsf.org/key4hep/setup.sh', '/cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh']
STACK: ['/cvmfs/sw.hsf.org/key4hep/setup.sh',
'/cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh']
OS: ['aidasoft/centos7',
'key4hep/key4hep-images/alma9',
'key4hep/key4hep-images/ubuntu']
steps:
- uses: actions/checkout@v3
- uses: cvmfs-contrib/github-action-cvmfs@v3
- name: Start container
run: |
docker run -it --name CI_container -v ${GITHUB_WORKSPACE}:/Package -v /cvmfs:/cvmfs:shared -d ghcr.io/aidasoft/centos7:latest /bin/bash
docker run -it --name CI_container \
-v ${GITHUB_WORKSPACE}:/Package \
-v /cvmfs:/cvmfs:shared \
-d ghcr.io/${{ matrix.OS }}:latest /bin/bash
- name: CMake Configure
run: |
docker exec CI_container /bin/bash -c 'cd Package;\
mkdir -p build install;\
source ${{ matrix.SETUP }};\
source ${{ matrix.STACK }};\
cd build;\
cmake -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_CXX_STANDARD=17 -DCMAKE_CXX_FLAGS=" -fdiagnostics-color=always " -DWITH_DD4HEP=ON -DWITH_ACTS=ON -DWITH_ONNX=ON -G Ninja ..;'
cmake -DCMAKE_INSTALL_PREFIX=../install \
-DCMAKE_CXX_STANDARD=17 \
-DCMAKE_CXX_FLAGS=" -fdiagnostics-color=always " \
-DWITH_DD4HEP=ON \
-DWITH_ACTS=ON \
-DWITH_ONNX=ON \
-G Ninja ..;'
- name: Compile
run: |
docker exec CI_container /bin/bash -c 'cd ./Package;\
source ${{ matrix.SETUP }};\
source ${{ matrix.STACK }};\
cd build;\
ninja -k0;'
- name: Install
run: |
docker exec CI_container /bin/bash -c 'cd ./Package;\
source ${{ matrix.SETUP }};\
source ${{ matrix.STACK }};\
cd build;\
ninja -k0 install;'
- name: Test
run: |
docker exec CI_container /bin/bash -c 'cd ./Package;\
source ${{ matrix.SETUP }};\
source ${{ matrix.STACK }};\
cd build;\
ninja -k0 && ctest --output-on-failure;'
- name: Test using local Setup.sh
run: |
docker exec CI_container /bin/bash -c 'cd ./Package
source ${{ matrix.SETUP }}
source ${{ matrix.STACK }}
source ./setup.sh
fccanalysis run examples/FCCee/higgs/mH-recoil/mumu/analysis_stage1.py --output myoutput.root --files-list root://eospublic.cern.ch//eos/experiment/fcc/ee/generation/DelphesEvents/spring2021/IDEA/p8_ee_Zbb_ecm91_EvtGen_Bc2TauNuTAUHADNU/events_131527278.root
'
fccanalysis run examples/FCCee/higgs/mH-recoil/mumu/analysis_stage1.py \
--output myoutput.root \
--files-list root://eospublic.cern.ch//eos/experiment/fcc/ee/generation/DelphesEvents/spring2021/IDEA/p8_ee_Zbb_ecm91_EvtGen_Bc2TauNuTAUHADNU/events_131527278.root'

0 comments on commit d5935d4

Please sign in to comment.