Skip to content

Commit

Permalink
Merge pull request #946 from cms-analysis/cvmfs_ci
Browse files Browse the repository at this point in the history
Add Continuous Integration using CMSSW via CVMFS
  • Loading branch information
anigamova authored Apr 18, 2024
2 parents cc9a440 + e890171 commit e7f355d
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/cvmfs-ci.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e7f355d

Please sign in to comment.