2
0
mirror of https://github.com/boostorg/cmake.git synced 2026-01-19 04:02:15 +00:00

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.
This commit is contained in:
Alexander Grund
2025-10-09 08:51:20 +02:00
parent de87d68338
commit 49c7fd93df

View File

@@ -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