Skip to content

Commit

Permalink
Add option to run Skupper Router CI with any provided custom qpid-pro…
Browse files Browse the repository at this point in the history
…ton branch (#480)
  • Loading branch information
jiridanek authored May 19, 2022
1 parent d9a1b1c commit 7968e47
Showing 1 changed file with 35 additions and 10 deletions.
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

0 comments on commit 7968e47

Please sign in to comment.