From 49c7fd93dff92bb5a1a1a5120b0d35aee56954cd Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Thu, 9 Oct 2025 08:51:20 +0200 Subject: [PATCH] Add option to trigger cmake-versions GHA workflow This allows manually running the workflow e.g. to test recent changes in the main Boost project/libraries. --- .github/workflows/cmake_versions.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cmake_versions.yml b/.github/workflows/cmake_versions.yml index 4ae09e7..ba4fb6c 100644 --- a/.github/workflows/cmake_versions.yml +++ b/.github/workflows/cmake_versions.yml @@ -7,6 +7,16 @@ on: - master - develop - feature/** + workflow_dispatch: + inputs: + branch: + description: 'Boost branch to run for' + required: false + default: 'auto' + options: + - auto + - master + - develop jobs: posix: @@ -24,8 +34,13 @@ jobs: run: | REF=${GITHUB_BASE_REF:-$GITHUB_REF} REF=${REF#refs/heads/} - echo REF: $REF - BOOST_BRANCH=develop && [ "$REF" == "master" ] && BOOST_BRANCH=master || true + BOOST_BRANCH="${{inputs.branch}}" + if [[ -z $BOOST_BRANCH ]]; then + REF=${GITHUB_BASE_REF:-$GITHUB_REF} + REF=${REF#refs/heads/} + echo REF: $REF + [[ "$REF" == "master" ]] && BOOST_BRANCH=master || BOOST_BRANCH=develop + fi echo BOOST_BRANCH: $BOOST_BRANCH cd .. git clone -b $BOOST_BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root