-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update fastdds-build workflow to manually set dependencies version (#35)
* Update fastdds-build workflow to manually set dependencies version Signed-off-by: Raul Sanchez-Mateos <raul@eprosima.com> * Keep fetch dependencies from .repos option Signed-off-by: Raul Sanchez-Mateos <raul@eprosima.com> * Do not scape " in inputs comments Signed-off-by: Raul Sanchez-Mateos <raul@eprosima.com> * Update README and actions description Signed-off-by: Raul Sanchez-Mateos <raul@eprosima.com> * Update actions branch to main Signed-off-by: Raul Sanchez-Mateos <raul@eprosima.com> --------- Signed-off-by: Raul Sanchez-Mateos <raul@eprosima.com>
- Loading branch information
1 parent
a76eda7
commit d7cdcfb
Showing
5 changed files
with
227 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: fetch_fastdds_manual | ||
description: Download Fast DDS and its eProsima dependencies setting the specific version of each repository | ||
|
||
inputs: | ||
|
||
foonathan_memory_vendor_branch: | ||
description: Branch, tag or commit of eProsima/foonathan_memory_vendor repository. Check available branches in https://github.com/eProsima/foonathan_memory_vendor. | ||
required: false | ||
default: master | ||
|
||
fastcdr_branch: | ||
description: Branch, tag or commit of eProsima/Fast-CDR repository. Check available branches in https://github.com/eProsima/Fast-CDR. | ||
required: false | ||
default: master | ||
|
||
fastdds_branch: | ||
description: Branch, tag or commit of eProsima/Fast-DDS repository. Check available branches in https://github.com/eProsima/Fast-DDS. | ||
required: false | ||
default: master | ||
|
||
destination_workspace: | ||
description: 'Workspace where the repositories are downloaded' | ||
required: false | ||
default: '${{ github.workspace }}' | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
|
||
- name: Run in ubuntu | ||
uses: eProsima/eProsima-CI/ubuntu/fetch_fastdds_manual@main | ||
if: runner.os == 'Linux' | ||
with: | ||
foonathan_memory_vendor_branch: ${{ inputs.foonathan_memory_vendor_branch }} | ||
fastcdr_branch: ${{ inputs.fastcdr_branch }} | ||
fastdds_branch: ${{ inputs.fastdds_branch }} | ||
destination_workspace: ${{ inputs.destination_workspace }} | ||
|
||
- name: Run in windows | ||
uses: eProsima/eProsima-CI/windows/fetch_fastdds_manual@main | ||
if: runner.os == 'Windows' | ||
with: | ||
foonathan_memory_vendor_branch: ${{ inputs.foonathan_memory_vendor_branch }} | ||
fastcdr_branch: ${{ inputs.fastcdr_branch }} | ||
fastdds_branch: ${{ inputs.fastdds_branch }} | ||
destination_workspace: ${{ inputs.destination_workspace }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: fetch_fastdds_manual | ||
description: Download Fast DDS and its eProsima dependencies setting the specific version of each repository | ||
|
||
inputs: | ||
|
||
foonathan_memory_vendor_branch: | ||
description: Branch, tag or commit of eProsima/foonathan_memory_vendor repository. Check available branches in https://github.com/eProsima/foonathan_memory_vendor. | ||
required: false | ||
default: master | ||
|
||
fastcdr_branch: | ||
description: Branch, tag or commit of eProsima/Fast-CDR repository. Check available branches in https://github.com/eProsima/Fast-CDR. | ||
required: false | ||
default: master | ||
|
||
fastdds_branch: | ||
description: Branch, tag or commit of eProsima/Fast-DDS repository. Check available branches in https://github.com/eProsima/Fast-DDS. | ||
required: false | ||
default: master | ||
|
||
destination_workspace: | ||
description: 'Workspace where the repositories are downloaded' | ||
required: false | ||
default: '${{ github.workspace }}' | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
|
||
- name: fetch_fastdds_manual | ||
run: | | ||
echo "::group::Manually clone Fast DDS repositories" | ||
echo "Downloading following dependencies:" | ||
echo " - Foonathan Memory Vendor: ${{ inputs.foonathan_memory_vendor_branch }}" | ||
echo " - Fast CDR: ${{ inputs.fastcdr_branch }}" | ||
echo " - Fast DDS: ${{ inputs.fastdds_branch }}" | ||
mkdir -p ${{ inputs.destination_workspace }} | ||
cd ${{ inputs.destination_workspace }} | ||
git clone --branch ${{ inputs.foonathan_memory_vendor_branch }} https://github.com/eProsima/foonathan_memory_vendor.git | ||
git clone --branch ${{ inputs.fastcdr_branch }} https://github.com/eProsima/Fast-CDR.git | ||
git clone --branch ${{ inputs.fastdds_branch }} https://github.com/eProsima/Fast-DDS.git | ||
echo "::endgroup::" | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: fetch_fastdds_manual | ||
description: Download Fast DDS and its eProsima dependencies setting the specific version of each repository | ||
|
||
inputs: | ||
|
||
foonathan_memory_vendor_branch: | ||
description: Branch, tag or commit of eProsima/foonathan_memory_vendor repository. Check available branches in https://github.com/eProsima/foonathan_memory_vendor. | ||
required: false | ||
default: master | ||
|
||
fastcdr_branch: | ||
description: Branch, tag or commit of eProsima/Fast-CDR repository. Check available branches in https://github.com/eProsima/Fast-CDR. | ||
required: false | ||
default: master | ||
|
||
fastdds_branch: | ||
description: Branch, tag or commit of eProsima/Fast-DDS repository. Check available branches in https://github.com/eProsima/Fast-DDS. | ||
required: false | ||
default: master | ||
|
||
destination_workspace: | ||
description: 'Workspace where the repositories are downloaded' | ||
required: false | ||
default: '${{ github.workspace }}' | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
|
||
- name: fetch_fastdds_manual | ||
shell: pwsh | ||
run: | | ||
"::group::Manually clone Fast DDS repositories" | ||
Write-Host 'Downloading following dependencies:' | ||
Write-Host ' - Foonathan Memory Vendor: ${{ inputs.foonathan_memory_vendor_branch }}' | ||
Write-Host ' - Fast CDR: ${{ inputs.fastcdr_branch }}' | ||
Write-Host ' - Fast DDS: ${{ inputs.fastdds_branch }}' | ||
New-Item -ItemType Directory -Force -Path ${{ inputs.destination_workspace }} | ||
Set-Location -Path ${{ inputs.destination_workspace }} | ||
git clone --branch ${{ inputs.foonathan_memory_vendor_branch }} https://github.com/eProsima/foonathan_memory_vendor.git | ||
git clone --branch ${{ inputs.fastcdr_branch }} https://github.com/eProsima/Fast-CDR.git | ||
git clone --branch ${{ inputs.fastdds_branch }} https://github.com/eProsima/Fast-DDS.git | ||
"::endgroup::" |