Skip to content

Commit

Permalink
Adding OS into the test matrix (#60)
Browse files Browse the repository at this point in the history
* Adding OS into the test matrix

* Forgot one SETUP

* Using centos7 from aidasoft

* fail-fast: false
  • Loading branch information
kjvbrt authored Dec 13, 2023
1 parent 36e5e00 commit 9666b9f
Showing 1 changed file with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,30 +1,34 @@
name: CITestsNightlies
name: 'Build and Test'
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
SETUP: ["/cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh"]
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@v2
- uses: cvmfs-contrib/github-action-cvmfs@v2
with:
cvmfs_repositories: 'sw.hsf.org,sw-nightlies.hsf.org,sft-nightlies.cern.ch,sft.cern.ch,geant4.cern.ch'
- 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: Compile
run: |
docker exec CI_container /bin/bash -c 'cd ./Package;\
source ${{ matrix.SETUP }};\
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.SETUP }};\
docker exec CI_container /bin/bash -c 'cd ./Package; source ${{ matrix.STACK }};\
cd build;\
ctest -j `getconf _NPROCESSORS_ONLN` --output-on-failure;'

0 comments on commit 9666b9f

Please sign in to comment.