Update pre-commit license year; previous commit: Update license year;… #72
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: linux | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
SETUP: ['/cvmfs/sw.hsf.org/key4hep/setup.sh', '/cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh'] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cvmfs-contrib/[email protected] | |
- name: Start container | |
run: | | |
docker run \ | |
-it --name k4Acts_CI \ | |
-v ${{ github.workspace }}:/k4Acts \ | |
-v /cvmfs:/cvmfs:shared \ | |
-d ghcr.io/aidasoft/centos7:latest /bin/bash | |
- name: Compile | |
run: | | |
docker exec k4Acts_CI /bin/bash -c 'source ${{ matrix.SETUP }}; | |
cd k4Acts; | |
mkdir build install; cd build; | |
cmake -G Ninja -D CMAKE_INSTALL_PREFIX=$PWD/../install -D CMAKE_BUILD_TYPE=RelWithDebInfo ..; | |
ninja install; | |
' | |
- name: Run tests (CTest) | |
run: | | |
docker exec k4Acts_CI /bin/bash -c 'source ${{ matrix.SETUP }}; | |
cd k4Acts/build; | |
ctest --output-on-failure; | |
' |