2020
2121jobs :
2222 build_against_dev_release :
23- name : build_against_dev
24- # The type of runner that the job will run on
25- runs-on : ubuntu-latest
26-
27- # Steps represent a sequence of tasks that will be executed as part of the job
28- steps :
29- - uses : cvmfs-contrib/github-action-cvmfs@main
30-
31- - name : change dir permission
32- run : |
33- sudo chmod -R go+rwx /var/lib/cvmfs
34-
35- - name : Cache cvmfs cache
36- id : cvmfs_cache
37- uses : actions/cache@main
38- with :
39- path : /var/lib/cvmfs/shared
40- key : cachecvmfs
41-
42- - name : restore dir permission
43- run : |
44- sudo chown -R cvmfs.cvmfs /var/lib/cvmfs
45- sudo chmod -R go-rwx /var/lib/cvmfs
46-
47- - name : Checkout pkg
48- uses : actions/checkout@main
49- with :
50- repository : ${{ github.repository }}
51- path : scratch/${{ github.repository }}
52-
53- - name : run build in docker container with cvmfs bind mount
54- run : |
55-
56- cd $GITHUB_WORKSPACE/scratch
57- cat << EOT > build_pkg.sh
58- #!/bin/bash
59-
60- cd /opt/otsdaq
61- source /opt/otsdaq/products/setup
62- source /opt/otsdaq/setup_ots.sh || exit 1
63- mrb updateSource
64-
65- export REPO=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')
66- cp -pr /scratch/art-daq/$REPO srcs
67-
68- echo "Starting build"
69- mrb b 2>&1 | tee /scratch/art-daq/build.log
70-
71- exit $?
72- EOT
73- chmod +x build_pkg.sh
74-
75- docker run --rm -v /cvmfs:/cvmfs:shared -v $GITHUB_WORKSPACE/scratch:/scratch eflumerf/artdaq-suite:latest /scratch/build_pkg.sh
76-
77- - name : Check build log for success
78- run : |
79- grep "INFO: stage build SUCCESS" ${{ github.workspace }}/scratch/art-daq/build.log
80-
81- - name : upload build log file
82- uses : actions/upload-artifact@main
83- with :
84- name : build_log
85- path : ${{ github.workspace }}/scratch/art-daq/build.log
86-
87- - name : change dir permission again
88- run : |
89- sudo chmod -R go+rwx /var/lib/cvmfs
23+ name : Build against develop
24+ uses : art-daq/.github/.github/workflows/artdaq-develop-cpp-ci.yml@stable
0 commit comments