Second debugging commit, this will build an ubuntu container for use … #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Event Rates Beam | |
on: | |
pull_request: | |
branches: [develop] | |
push: | |
branches: [hwallace/feature/event_rate_bot] | |
permissions: | |
contents: read | |
packages: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- os: Alma9 | |
file: doc/MaCh3DockerFiles/Alma9/Dockerfile | |
tag: alma9latest | |
name: Build CI ${{ matrix.os }} | |
container: | |
image: ghcr.io/dune/mach3:ubuntulatest | |
options: --privileged -v /cvmfs:/cvmfs:shared | |
steps: | |
# Checkout the repository code | |
- uses: actions/checkout@v4 | |
# Set up CVMFS | |
- name: Set up CVMFS | |
uses: cvmfs-contrib/github-action-cvmfs@v4 | |
# Verify CVMFS mount | |
- name: Verify CVMFS Access | |
run: | | |
echo "Checking CVMFS..." | |
ls /cvmfs/dune.osgstorage.org/pnfs/fnal.gov/usr/dune/persistent/stash/MaCh3/inputs/TDR/v1 | |
# Build the code | |
- name: Build Code | |
run: | | |
mkdir build | |
cd build | |
cmake ../ | |
make install -j4 | |
cd .. | |
ln -sf \ | |
/cvmfs/dune.osgstorage.org/pnfs/fnal.gov/usr/dune/persistent/stash/MaCh3/inputs/TDR/v1/* inputs | |
# Run event rates | |
- name: Run Event Rates | |
run: | | |
echo "Inputs: " | |
ls inputs | |
echo "CVMFS: " | |
ls /cvmfs/dune.osgstorage.org/pnfs/fnal.gov/usr/dune/persistent/stash/MaCh3/inputs/TDR/v1 | |
source build/bin/setup.MaCh3.sh | |
source build/bin/setup.NuOscillator.sh | |
source build/bin/setup.MaCh3DUNE.sh | |
./build/src/EventRates configs/EventRates_Beam.yaml |