Skip to content

build-develop

build-develop #1789

name: build-develop
# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
on:
push:
branches:
- develop
- patch/*
- prep-release/*
paths-ignore:
- 'docs/**'
- '.github/**'
pull_request:
branches: [ develop ]
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:development_v5"
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@v4
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_v5 || true
release_name="last_fddaq"
if [[ -n $( sed -r -n '/- name: '$REPO'$/p' daq-release/configs/nddaq/nddaq-develop/release.yaml ) ]] ; then release_name="last_nddaq"; fi
dbt-create -n $release_name dev-${{ matrix.os_name }}
- name: checkout package for CI
uses: actions/checkout@v4
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
test $REPO == "dbe" && spack load dbe
cp -pr $GITHUB_WORKSPACE/DUNE-DAQ/$REPO $GITHUB_WORKSPACE/dev-${{ matrix.os_name }}/sourcecode
dbt-build # --unittest done elsewhere; --lint unavailable due to llvm being too large for images
- name: upload build log file
uses: actions/upload-artifact@v4
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@v4
# 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@v4
# with:
# name: unit_tests_log_${{ matrix.os_name }}
# path: ${{ github.workspace }}/dev-${{ matrix.os_name }}/log/unit_tests*