From f267f00c67604d23772c62406e5a077accbf783f Mon Sep 17 00:00:00 2001 From: Enrico Seiler Date: Thu, 12 Nov 2026 19:14:49 +0100 Subject: [PATCH] ci: submit CPM dependencies to the dependency graph On every push to main that changes cmake/package-lock.cmake or cmake/CPM.cmake, submit the CPM packages and the CPM version to the dependency graph with seqan/actions/cpm_dependency_submission, e.g. when the PR of cron_cpm.yml is merged. Problems are warnings, not failures. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/dependency_submission.yml | 37 +++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/dependency_submission.yml diff --git a/.github/workflows/dependency_submission.yml b/.github/workflows/dependency_submission.yml new file mode 100644 index 0000000..9f5e1d7 --- /dev/null +++ b/.github/workflows/dependency_submission.yml @@ -0,0 +1,37 @@ +# SPDX-FileCopyrightText: 2006-2026 Knut Reinert & Freie Universität Berlin +# SPDX-FileCopyrightText: 2016-2026 Knut Reinert & MPI für molekulare Genetik +# SPDX-License-Identifier: CC0-1.0 + +# Submits the CPM packages (cmake/package-lock.cmake) and the CPM version (cmake/CPM.cmake) of every change on main to +# the dependency graph, e.g. when the PR of cron_cpm.yml is merged. +# Problems (e.g. a disabled dependency graph) are warnings, not failures. + +name: Dependency Submission + +on: + push: + branches: + - 'main' + paths: + - 'cmake/package-lock.cmake' + - 'cmake/CPM.cmake' + workflow_dispatch: + +# Only the latest snapshot counts: a newer push cancels an older submission that has not finished. +concurrency: + group: dependency-submission-${{ github.ref }} + cancel-in-progress: true + +jobs: + submit: + name: Dependency Submission + runs-on: ubuntu-latest + if: github.repository_owner == 'seqan' || github.event_name == 'workflow_dispatch' + timeout-minutes: 10 + permissions: + contents: write # dependency submission API + steps: + - name: Submit CPM dependencies + uses: seqan/actions/cpm_dependency_submission@main + with: + package_lock_file: cmake/package-lock.cmake