Skip to content

Commit

Permalink
[ci] add workflow using nightlies (#1)
Browse files Browse the repository at this point in the history
* [ci] add workflow using nightlies

tmp

tmp

* [ci] disable spack-based workflow

* [ci] change workflow name

* [ci] limit number of cores to compile

* [ci] add dummy test

* [ci] fix type
  • Loading branch information
vvolkl authored Dec 7, 2020
1 parent 5a28671 commit 143e2f3
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 27 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/nightlies.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CITestsNightlies
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
SETUP: ["/cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh"]
steps:
- uses: actions/checkout@v2
- uses: cvmfs-contrib/github-action-cvmfs@v1
with:
cvmfs_repositories: 'sw.hsf.org,sw-nightlies.hsf.org,sft-nightlies.cern.ch,sft.cern.ch,geant4.cern.ch'
- name: Start container
run: |
docker run -it --name CI_container -v ${GITHUB_WORKSPACE}:/Package -v /cvmfs:/cvmfs:shared -d clicdp/cc7-lcg /bin/bash
- name: Setup container
run: |
docker exec CI_container /bin/bash -c " ln -s /usr/lib64/liblzma.so.5.2.2 /usr/lib64/liblzma.so;"
- name: Compile
run: |
docker exec CI_container /bin/bash -c 'cd ./Package;\
source ${{ matrix.SETUP }};\
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 }};\
cd build;\
ctest -j `getconf _NPROCESSORS_ONLN` --output-on-failure;'
26 changes: 0 additions & 26 deletions .github/workflows/test.yaml

This file was deleted.

16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# k4RecCalorimeter - Key4hep Framework Components for Calorimeter Reconstruction


## Dependencies

All dependencies can be set up from the Key4hep nightly builds (on lxplus / Centos7 machines with CVMFS)

```
source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh
```

* EDM4HEP
* k4FWCore
* DD4hep
* FCCDetectors
* FCC-EDM (will be replaced by EDM4HEP)
6 changes: 5 additions & 1 deletion RecCalorimeter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ install(TARGETS k4RecCalorimeterPlugins
COMPONENT dev)


include(CTest)

add_test(NAME TemporaryTest
COMMAND k4run -h)

#install(DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/tests/options DESTINATION ${CMAKE_INSTALL_DATADIR}/${CMAKE_PROJECT_NAME}/Reconstruction/RecCalorimeter)
#
#include(CTest)
#gaudi_add_test(genJetClustering
# WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
# FRAMEWORK tests/options/genJetClustering.py)
Expand Down

0 comments on commit 143e2f3

Please sign in to comment.