-
Notifications
You must be signed in to change notification settings - Fork 1
[20091] Add actions to support Fast DDS CI on macOS #44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 6 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
fd0b55a
Refs #20091: Add support for running Fast DDS CI on macOS
EduPonz 89b9952
Refs #20091: Do not upgrade python packages on colcon installation
EduPonz cbcbd96
Refs #20091: Workspace is mandatory in colcon_test multiplatform action
EduPonz eb18688
Refs #20091: Remove sudo for pip installation
EduPonz 8b7b8e4
Refs #20091: Add macos actions to multiplaform
EduPonz 91e7c9f
Refs #20091: Bump setup-python version
EduPonz b2797d1
Refs #20091: Set multiplatform colcon_test workspace default value
EduPonz 7824cf2
Refs #20091: Bump version and document new actions in README
EduPonz 7c5f323
Refs #20091: Set actions version to main
EduPonz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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@feature/fastdds_mac_ci_support | ||
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://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml | ||
colcon mixin update default |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.