Skip to content

[21230] Migrate Discovery Server CI to Github #4

[21230] Migrate Discovery Server CI to Github

[21230] Migrate Discovery Server CI to Github #4

Workflow file for this run

name: Fast DDS Discovery Server Ubuntu CI
on:
workflow_dispatch:
inputs:
os-version:
description: 'OS version to run the workflow'
required: false
default: 'ubuntu-22.04'
type: string
colcon-args:
description: 'Extra arguments for colcon cli'
required: false
type: string
cmake-args:
description: 'Extra arguments for cmake cli'
required: false
type: string
ctest-args:
description: 'Extra arguments for ctest cli'
required: false
type: string
discovery-server-branch:
description: 'Branch or tag of Discovery Server repository'
type: string
required: true
fastdds-branch:
description: 'Branch or tag of Fast DDS repository'
type: string
required: true
run-tests:
description: 'Run test suite of Fast DDS Discovery Server'
required: false
type: boolean
default: true
use-ccache:
description: 'Use CCache to speed up the build'
required: false
type: boolean
default: false
pull_request:
types:
- review_requested
paths-ignore:
- '**.md'
- '**.txt'
- '!**/CMakeLists.txt'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
ubuntu-ci:
uses: ./.github/workflows/reusable-ubuntu-ci.yml
with:
os-version: ${{ inputs.os-version || 'ubuntu-22.04' }}
label: 'ubuntu-ci'
colcon-args: ${{ inputs.colcon-args }}
cmake-args: ${{ inputs.cmake-args }}
ctest-args: ${{ inputs.ctest-args || '-LE xfail' }}
discovery-server-branch: ${{ inputs.discovery-server-branch || github.ref || 'master' }}
fastdds-branch: ${{ inputs.fastdds-branch || 'master' }}
run-build: ${{ !(github.event_name == 'pull_request') && true || (!contains(github.event.pull_request.labels.*.name, 'skip-ci') && !contains(github.event.pull_request.labels.*.name, 'conflicts')) && true || false }}
run-tests: ${{ ((inputs.run-tests == true) && true) || (github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'no-test')) && true || false }}
use-ccache: ${{ inputs.use-ccache || false }}