Skip to content

Commit 86309d6

Browse files
authored
Add input for fastdds build workflow (#252)
Signed-off-by: RaulSanchez <raul@eprosima.com>
1 parent 7b75cee commit 86309d6

3 files changed

Lines changed: 19 additions & 0 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
name: 'fetch-fastdds-repos'
22
description: 'Fetch Fast DDS and its dependencies'
3+
inputs:
4+
fastdds_branch:
5+
description: 'Branch or tag of Fast DDS repository (https://github.com/eProsima/Fast-DDS)'
6+
required: true
7+
default: 'master'
38
runs:
49
using: "composite"
510
steps:
611
- id: fetch-fastdds-repos
712
run: |
813
wget https://raw.githubusercontent.com/eProsima/Fast-DDS/master/fastrtps.repos
914
vcs import src < fastrtps.repos
15+
cd src/fastrtps && git checkout fastdds_branch && cd ../..
1016
shell: bash

.github/actions/install-eprosima-dependencies-windows/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ inputs:
55
description: 'Specifies the build type on single-configuration generators'
66
required: true
77
default: 'Release'
8+
fastdds_branch:
9+
description: 'Branch or tag of Fast DDS repository (https://github.com/eProsima/Fast-DDS)'
10+
required: true
11+
default: 'master'
812
runs:
913
using: composite
1014
steps:

.github/workflows/build_fastdds.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@ name: build_fastdds
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
fastdds_branch:
7+
description: 'Branch or tag of Fast DDS repository (https://github.com/eProsima/Fast-DDS)'
8+
required: true
9+
default: 'master'
510
schedule:
611
- cron: '0 0 * * *'
712

13+
814
jobs:
915
windows-build:
1016
runs-on: ${{ matrix.windows-version }}
@@ -34,6 +40,7 @@ jobs:
3440
uses: ./DDS-Router/.github/actions/install-eprosima-dependencies-windows
3541
with:
3642
cmake_build_type: ${{ matrix.cmake-config }}
43+
fastdds_branch: ${{ github.event.inputs.fastdds_branch }}
3744

3845
- name: Upload binaries
3946
uses: actions/upload-artifact@v3
@@ -68,6 +75,8 @@ jobs:
6875

6976
- name: Fetch Fast DDS repositories
7077
uses: ./src/DDS-Router/.github/actions/fetch-fastdds-repos
78+
with:
79+
fastdds_branch: ${{ github.event.inputs.fastdds_branch }}
7180

7281
- name: Build workspace
7382
run: |

0 commit comments

Comments
 (0)