Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to run Skupper Router CI with any provided custom qpid-proton branch #480

Merged
45 changes: 35 additions & 10 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,26 @@

name: Build

on: [push, pull_request, workflow_dispatch]
on:
push:
pull_request:
workflow_dispatch:
inputs:
protonRepository:
description: GitHub repository where to fetch Qpid Proton from
type: string
default: 'apache/qpid-proton'
required: false
protonBranch:
description: Branch in the protonRepository to check out (in addition to hardcoded branches)
type: string
default: main
required: false

# known limitation https://github.com/actions/runner/issues/480
env:
protonRepository: "${{ github.event.inputs.protonRepository || 'apache/qpid-proton' }}"
protonBranch: "${{ github.event.inputs.protonBranch || 'main' }}"

jobs:
compile:
Expand All @@ -31,7 +50,9 @@ jobs:
os: [ubuntu-20.04]
buildType: [Debug]
runtimeCheck: [asan]
protonGitRef: [main, 0.37.0]
protonGitRef:
- ${{ github.event.inputs.protonBranch || 'main' }}
- 0.37.0
env:
BuildType: ${{matrix.buildType}}
ProtonBuildDir: ${{github.workspace}}/qpid-proton/build
Expand Down Expand Up @@ -71,7 +92,7 @@ jobs:

- uses: actions/checkout@v3
with:
repository: 'apache/qpid-proton'
repository: ${{ env.protonRepository }}
ref: ${{ matrix.protonGitRef }}
path: 'qpid-proton'

Expand Down Expand Up @@ -176,7 +197,9 @@ jobs:
os: [ubuntu-20.04]
buildType: [Debug]
runtimeCheck: [asan]
protonGitRef: [main, 0.37.0]
protonGitRef:
- ${{ github.event.inputs.protonBranch || 'main' }}
- 0.37.0
shard: [1, 2]
shards: [2]
env:
Expand Down Expand Up @@ -273,7 +296,9 @@ jobs:
containerTag: ['35']
buildType: [RelWithDebInfo]
runtimeCheck: [asan, tsan]
protonGitRef: [main, 0.37.0]
protonGitRef:
- ${{ github.event.inputs.protonBranch || 'main' }}
- 0.37.0
shard: [ 1, 2 ]
shards: [ 2 ]
include:
Expand All @@ -282,14 +307,14 @@ jobs:
container: 'centos'
containerTag: stream8
runtimeCheck: OFF
protonGitRef: main
protonGitRef: ${{ github.event.inputs.protonBranch || 'main' }}
shard: 1
shards: 2
- os: ubuntu-20.04
container: 'centos'
containerTag: stream8
runtimeCheck: OFF
protonGitRef: main
protonGitRef: ${{ github.event.inputs.protonBranch || 'main' }}
shard: 2
shards: 2
- os: ubuntu-20.04
Expand Down Expand Up @@ -370,7 +395,7 @@ jobs:

- uses: actions/checkout@v3
with:
repository: 'apache/qpid-proton'
repository: ${{ env.protonRepository }}
ref: ${{ matrix.protonGitRef }}
path: 'qpid-proton'

Expand Down Expand Up @@ -553,8 +578,8 @@ jobs:

- uses: actions/checkout@v3
with:
repository: 'apache/qpid-proton'
ref: main
repository: ${{ env.protonRepository }}
ref: ${{ env.protonBranch }}
path: 'qpid-proton'

- name: Install Linux build dependencies
Expand Down