Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 26 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,23 @@ env:
TZ: "Europe/London"

jobs:
runner-selection:
name: Runner Selection
runs-on: ${{ github.repository_owner == 'boostorg' && fromJSON('[ "self-hosted", "linux", "x64", "ubuntu-latest-aws" ]') || 'ubuntu-latest' }}
outputs:
labelmatrix: ${{ steps.aws_hosted_runners.outputs.labelmatrix }}
steps:
- name: AWS Hosted Runners
id: aws_hosted_runners
uses: cppalliance/aws-hosted-runners@v1.0.0
# Self-hosted runner selection is disabled to allow re-running individual
# failed jobs from the GitHub Actions UI. When using dynamic runner selection,
# the runs-on value depends on this job's output, which isn't available when
# re-running a subset of jobs.
#
# runner-selection:
# name: Runner Selection
# runs-on: ${{ github.repository_owner == 'boostorg' && fromJSON('[ "self-hosted", "linux", "x64", "ubuntu-latest-aws" ]') || 'ubuntu-latest' }}
# outputs:
# labelmatrix: ${{ steps.aws_hosted_runners.outputs.labelmatrix }}
# steps:
# - name: AWS Hosted Runners
# id: aws_hosted_runners
# uses: cppalliance/aws-hosted-runners@v1.0.0

build:
needs: [ runner-selection ]
# needs: [ runner-selection ]
defaults:
run:
shell: bash
Expand Down Expand Up @@ -266,7 +271,9 @@ jobs:
install: "gcc-multilib g++-multilib"

name: ${{ matrix.name }}
runs-on: ${{ fromJSON(needs.runner-selection.outputs.labelmatrix)[matrix.runs-on] }}
# Skip self-hosted runner selection for now
# runs-on: ${{ fromJSON(needs.runner-selection.outputs.labelmatrix)[matrix.runs-on] }}
runs-on: ${{ matrix.runs-on }}
container:
image: ${{ matrix.container }}
options: --privileged
Expand Down Expand Up @@ -506,13 +513,15 @@ jobs:
echo "" >> $GITHUB_STEP_SUMMARY

changelog:
needs: [ runner-selection ]
# needs: [ runner-selection ]
defaults:
run:
shell: bash

name: Changelog Summary
runs-on: ${{ fromJSON(needs.runner-selection.outputs.labelmatrix)['ubuntu-22.04'] }}
# Skip self-hosted runner selection for now
# runs-on: ${{ fromJSON(needs.runner-selection.outputs.labelmatrix)['ubuntu-22.04'] }}
runs-on: 'ubuntu-22.04'
timeout-minutes: 120

steps:
Expand All @@ -531,9 +540,11 @@ jobs:
tag-pattern: 'boost-.*\..*\..*'

antora:
needs: [ runner-selection ]
# needs: [ runner-selection ]
name: Antora Docs
runs-on: ${{ fromJSON(needs.runner-selection.outputs.labelmatrix)['ubuntu-latest'] }}
# Skip self-hosted runner selection for now
# runs-on: ${{ fromJSON(needs.runner-selection.outputs.labelmatrix)['ubuntu-latest'] }}
runs-on: 'ubuntu-latest'
defaults:
run:
shell: bash
Expand Down
Loading