-
Notifications
You must be signed in to change notification settings - Fork 62
70 lines (66 loc) · 2.62 KB
/
ubuntu-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Fast DDS Gen Ubuntu CI
on:
workflow_dispatch:
inputs:
fastddsgen-branch:
description: 'Fast DDS Gen branch to be used'
required: true
type: string
fastdds-branch:
description: 'Branch or tag of Fast DDS repository'
required: false
type: string
default: 'mergify/bp/2.6.x/pr-5093'
fastcdr-branch:
description: 'Branch or tag of Fast CDR repository'
required: false
type: string
default: '1.0.x'
fastdds-python-branch:
description: 'Branch or tag of Fast DDS Python repository'
required: false
type: string
default: 'mergify/bp/1.0.x/pr-170'
discovery-server-branch:
description: 'Branch or tag of Discovery Server repository'
required: false
type: string
default: 'v1.2.1'
run-tests:
description: 'Run test suite of Fast DDS Gen'
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:
if: ${{ !(github.event_name == 'pull_request') || !contains(github.event.pull_request.labels.*.name, 'conflicts') }}
uses: ./.github/workflows/reusable-ubuntu-ci.yml
with:
# It would be desirable to have a matrix of ubuntu OS for this job, but due to the issue opened in this ticket:
# https://github.com/orgs/community/discussions/128118 , it has been set as a single OS job.
os-version: 'ubuntu-20.04'
java-version: 'openjdk-11-jdk'
label: 'ubuntu-ci-openjdk-11-jdk'
fastddsgen-branch: ${{ inputs.fastddsgen-branch || github.ref }}
fastdds-branch: ${{ inputs.fastdds-branch || 'mergify/bp/2.6.x/pr-5093' }}
fastcdr-branch: ${{ inputs.fastcdr-branch || '1.0.x' }}
fastdds-python-branch: ${{ inputs.fastdds-python-branch || 'mergify/bp/1.0.x/pr-170' }}
discovery-server-branch: ${{ inputs.discovery-server-branch || 'v1.2.1' }}
run-build: ${{ !(github.event_name == 'pull_request') || !contains(github.event.pull_request.labels.*.name, 'skip-ci') }}
run-tests: ${{ (inputs.run-tests == true) || ((github.event_name == 'pull_request') && (!contains(github.event.pull_request.labels.*.name, 'no-test'))) }}
use-ccache: ${{ (inputs.use-ccache == true) || false }}