Skip to content

Commit 3685455

Browse files
Get correct Fast CDR related branch in CI (#226)
* Add Fast CDR branch selection in reusable jobs (#220) Signed-off-by: Carlosespicur <carlosespicur@proton.me> (cherry picked from commit c7b1678) * Update Fast CDR branch Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Skip base branch in Fast CDR branch selection Signed-off-by: Carlosespicur <carlosespicur@proton.me> --------- Signed-off-by: Carlosespicur <carlosespicur@proton.me> Co-authored-by: Carlos Espinoza Curto <148376273+Carlosespicur@users.noreply.github.com> Co-authored-by: Carlosespicur <carlosespicur@proton.me>
1 parent 9fba68d commit 3685455

File tree

2 files changed

+44
-4
lines changed

2 files changed

+44
-4
lines changed

.github/workflows/reusable-ubuntu-ci.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,18 @@ on:
2525
required: false
2626
type: string
2727
fastdds-python-branch:
28-
description: 'Branch or tag of Fast DDS Python repository'
28+
description: 'Branch or tag of Fast DDS Python repository (https://github.com/eProsima/Fast-DDS-python)'
2929
required: true
3030
type: string
3131
fastdds-branch:
32-
description: 'Branch or tag of Fast DDS repository'
32+
description: 'Branch or tag of Fast DDS repository (https://github.com/eProsima/Fast-DDS)'
3333
required: true
3434
type: string
35+
fastcdr-branch:
36+
description: 'Branch or tag of Fast CDR repository (https://github.com/eProsima/Fast-CDR)'
37+
required: false
38+
type: string
39+
default: '2.2.x'
3540
run-build:
3641
description: 'Build Fast DDS Python (CI skipped otherwise)'
3742
required: false
@@ -108,6 +113,21 @@ jobs:
108113
with:
109114
api_token: ${{ secrets.GITHUB_TOKEN }}
110115

116+
- name: Get Fast CDR branch
117+
id: get_fastcdr_branch
118+
uses: eProsima/eProsima-CI/ubuntu/get_related_branch_from_repo@v0
119+
with:
120+
remote_repository: eProsima/Fast-CDR
121+
fallback_branch: ${{ inputs.fastcdr-branch }}
122+
skip_base: true
123+
124+
- name: Download Fast CDR
125+
uses: eProsima/eProsima-CI/external/checkout@v0
126+
with:
127+
repository: eProsima/Fast-CDR
128+
path: ${{ github.workspace }}/src/fastcdr
129+
ref: ${{ steps.get_fastcdr_branch.outputs.deduced_branch }}
130+
111131
- name: Get Fast DDS branch
112132
id: get_fastdds_branch
113133
uses: eProsima/eProsima-CI/ubuntu/get_related_branch_from_repo@v0

.github/workflows/reusable-windows-ci.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,18 @@ on:
3030
required: false
3131
type: string
3232
fastdds-python-branch:
33-
description: 'Branch or tag of Fast DDS Python repository'
33+
description: 'Branch or tag of Fast DDS Python repository (https://github.com/eProsima/Fast-DDS-python)'
3434
required: true
3535
type: string
3636
fastdds-branch:
37-
description: 'Branch or tag of Fast DDS repository'
37+
description: 'Branch or tag of Fast DDS repository (https://github.com/eProsima/Fast-DDS)'
3838
required: true
3939
type: string
40+
fastcdr-branch:
41+
description: 'Branch or tag of Fast CDR repository (https://github.com/eProsima/Fast-CDR)'
42+
required: false
43+
type: string
44+
default: '2.2.x'
4045
run-build:
4146
description: 'Build Fast DDS Python (CI skipped otherwise)'
4247
required: false
@@ -126,6 +131,21 @@ jobs:
126131
shell: pwsh
127132
run: choco install swig --allow-downgrade --version=4.0.2.04082020
128133

134+
- name: Get Fast CDR branch
135+
id: get_fastcdr_branch
136+
uses: eProsima/eProsima-CI/ubuntu/get_related_branch_from_repo@v0
137+
with:
138+
remote_repository: eProsima/Fast-CDR
139+
fallback_branch: ${{ inputs.fastcdr-branch }}
140+
skip_base: true
141+
142+
- name: Download Fast CDR
143+
uses: eProsima/eProsima-CI/external/checkout@v0
144+
with:
145+
repository: eProsima/Fast-CDR
146+
path: ${{ github.workspace }}/src/fastcdr
147+
ref: ${{ steps.get_fastcdr_branch.outputs.deduced_branch }}
148+
129149
- name: Get Fast DDS branch
130150
id: get_fastdds_branch
131151
uses: eProsima/eProsima-CI/multiplatform/get_related_branch_from_repo@v0

0 commit comments

Comments
 (0)