Skip to content

Commit

Permalink
Merge pull request #48 from DUNE-DAQ/aeo/v4_to_v5
Browse files Browse the repository at this point in the history
v4 to v5 Port
  • Loading branch information
aeoranday authored Oct 15, 2024
2 parents 69e0059 + 0378a6f commit b2816b8
Show file tree
Hide file tree
Showing 33 changed files with 3,159 additions and 1,280 deletions.
88 changes: 88 additions & 0 deletions .github/workflows/dunedaq-v4-cpp-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
name: build-develop

# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
on:
push:
branches:
- production/v4
- patch/*
- prep-release/*
paths-ignore:
- 'docs/**'
- '.github/**'
pull_request:
branches: [ production/v4 ]
schedule:
- cron: "0 9 * * *"

workflow_dispatch:


jobs:
Build_against_dev_release:
name: build_against_dev_on_${{ matrix.os_name }}
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
matrix:
include:
- image: "ghcr.io/dune-daq/nightly-release-alma9:production_v4"
os_name: "a9"
container:
image: ${{ matrix.image }}
defaults:
run:
shell: bash

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Runs a single command using the runners shell

- name: Checkout daq-release
uses: actions/checkout@v3
with:
repository: DUNE-DAQ/daq-release
path: daq-release

- name: setup dev area
run: |
export REPO=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')
source /cvmfs/dunedaq.opensciencegrid.org/setup_dunedaq.sh
setup_dbt latest_v4 || true
release_name="last_fddaq"
dbt-create -n $release_name dev-${{ matrix.os_name }}
- name: checkout package for CI
uses: actions/checkout@v3
with:
path: ${{ github.repository }}

- name: setup build env, build the repo against the development release
run: |
export REPO=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')
cd $GITHUB_WORKSPACE/dev-${{ matrix.os_name }}
source env.sh || true
spack unload $REPO || true
cp -pr $GITHUB_WORKSPACE/DUNE-DAQ/$REPO $GITHUB_WORKSPACE/dev-${{ matrix.os_name }}/sourcecode
dbt-build # --unittest # --lint
- name: upload build log file
uses: actions/upload-artifact@v3
with:
name: build_log_${{ matrix.os_name }}
path: ${{ github.workspace }}/dev-${{ matrix.os_name }}/log/build*.log

# - name: upload linter output file
# uses: actions/upload-artifact@v3
# with:
# name: linting_log_${{ matrix.os_name }}
# path: ${{ github.workspace }}/dev-${{ matrix.os_name }}/log/linting*

# - name: upload unittest output file
# uses: actions/upload-artifact@v3
# with:
# name: unit_tests_log_${{ matrix.os_name }}
# path: ${{ github.workspace }}/dev-${{ matrix.os_name }}/log/unit_tests*
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# https://dune-daq-sw.readthedocs.io/en/latest/packages/daq-cmake/

cmake_minimum_required(VERSION 3.12)
project(trgtools VERSION 1.0.2)
project(trgtools VERSION 2.0.0)

find_package(daq-cmake REQUIRED)
find_package(CLI11 REQUIRED)
Expand Down Expand Up @@ -49,14 +49,14 @@ daq_add_python_bindings(*.cpp LINK_LIBRARIES ${PROJECT_NAME} ) # Any additional

daq_add_application(trgtools_tapipe tapipe.cxx LINK_LIBRARIES ${PROJECT_NAME} CLI11::CLI11 fmt::fmt) # Any libraries to link in not yet determined
daq_add_application(trgtools_copy_tpstream copy_tpstream.cxx LINK_LIBRARIES ${PROJECT_NAME} CLI11::CLI11 fmt::fmt) # Any libraries to link in not yet determined
daq_add_application(trgtools_process_tpstream process_tpstream.cxx LINK_LIBRARIES ${PROJECT_NAME} CLI11::CLI11 fmt::fmt) # Any libraries to link in not yet determined
daq_add_application(trgtools_process_tpstream process_tpstream.cxx LINK_LIBRARIES ${PROJECT_NAME} CLI11::CLI11 fmt::fmt triggeralgs::triggeralgs trgdataformats::trgdataformats hdf5libs::hdf5libs detchannelmaps::detchannelmaps)

##############################################################################


# See https://dune-daq-sw.readthedocs.io/en/latest/packages/daq-cmake/#daq_add_unit_test

daq_add_unit_test(TPGtools_unittest LINK_LIBRARIES) # Should be replaced with real unit tests
# daq_add_unit_test(TPGtools_unittest LINK_LIBRARIES) # Should be replaced with real unit tests

##############################################################################

Expand Down
Loading

0 comments on commit b2816b8

Please sign in to comment.