From e890171f5ea4cae94cfa93bc459802f4edca99e0 Mon Sep 17 00:00:00 2001 From: Clemens Lange Date: Wed, 17 Apr 2024 16:53:22 +0200 Subject: [PATCH] Add CVMFS CI --- .github/workflows/cvmfs-ci.yml | 42 ++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/cvmfs-ci.yml diff --git a/.github/workflows/cvmfs-ci.yml b/.github/workflows/cvmfs-ci.yml new file mode 100644 index 00000000000..ed5444d93eb --- /dev/null +++ b/.github/workflows/cvmfs-ci.yml @@ -0,0 +1,42 @@ +name: CI with CVMFS + +env: + IMAGE: cmscloud/cc7-cms + CMSSW_VERSION: CMSSW_11_3_4 + SCRAM_ARCH: slc7_amd64_gcc900 + +on: + workflow_dispatch: + pull_request: + push: + branches: + - main + +jobs: + test_workflow: + runs-on: ubuntu-latest + name: Test with CMSSW + steps: + # checkout the files of this repository + - uses: actions/checkout@v4 + - uses: cvmfs-contrib/github-action-cvmfs@v4 + with: + cvmfs_repositories: 'cms.cern.ch' + - uses: rhaschke/docker-run-action@v5 + with: + image: ${{ env.IMAGE }} + shell: bash + options: -v /cvmfs:/cvmfs:shared -v ${{ github.workspace }}:/work/CombinedLimit -w /home/cmsusr -e CMSSW_VERSION=${{ env.CMSSW_VERSION }} -e SCRAM_ARCH=${{ env.SCRAM_ARCH }} + run: | + ls /work/CombinedLimit + ls /cvmfs/cms.cern.ch | grep common + source /cvmfs/cms.cern.ch/cmsset_default.sh + scram project ${CMSSW_VERSION} + source /cvmfs/cms.cern.ch/cmsset_default.sh + cd ${CMSSW_VERSION}/src + cmsenv + mkdir -p HiggsAnalysis + cp -r /work/CombinedLimit HiggsAnalysis/ + scramv1 b -j$(nproc) + echo ${PATH} + combine --help