Skip to content

Update tests to Alma9 and Ubuntu 22.04 #77

Update tests to Alma9 and Ubuntu 22.04

Update tests to Alma9 and Ubuntu 22.04 #77

Workflow file for this run

name: linux
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
SETUP: ['init_hsf.sh']
OS: ['alma9', 'ubuntu22']
steps:
- uses: actions/checkout@v4
- uses: cvmfs-contrib/github-action-cvmfs@v4
- name: Start container
run: |
docker run -it --name CI_container \
-v ${GITHUB_WORKSPACE}:/Package \
-v /cvmfs:/cvmfs:shared \
-d ghcr.io/key4hep/key4hep-images/${{ matrix.OS }}:latest \
/bin/bash
- name: CMake Configure
run: |
docker exec CI_container /bin/bash -c "cd ./Package;\
source ${{ matrix.SETUP }};\
mkdir build install;\
cd build;\
cmake -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_CXX_STANDARD=17 ..;"
- name: Compile
run: |
docker exec CI_container /bin/bash -c "cd ./Package;\
source ${{ matrix.SETUP }};\
cd build;\
make -j `getconf _NPROCESSORS_ONLN`;"
- name: Install
run: |
docker exec CI_container /bin/bash -c "cd ./Package;\
source ${{ matrix.SETUP }};\
cd build;\
make install;"