Skip to content

Using K4GEO detectors in tests #12

Using K4GEO detectors in tests

Using K4GEO detectors in tests #12

Workflow file for this run

name: 'Build and Test'
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
STACK: ['/cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh',
'/cvmfs/sw.hsf.org/key4hep/setup.sh']
OS: ['aidasoft/centos7', 'key4hep/key4hep-images/alma9']
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/${{ matrix.OS }}:latest /bin/bash
- name: Compile
run: |
docker exec CI_container /bin/bash -c 'cd ./Package;\
source ${{ matrix.STACK }};\
mkdir build install;\
cd build;\
cmake -DCMAKE_INSTALL_PREFIX=../install -DBUILD_TESTING=ON ..;\
make -j `getconf _NPROCESSORS_ONLN` install;'
- name: Test
run: |
docker exec CI_container /bin/bash -c 'cd ./Package; source ${{ matrix.STACK }};\
cd build;\
ctest -j `getconf _NPROCESSORS_ONLN` --output-on-failure;'