Skip to content

Commit

Permalink
Refs #20989: Test colcon intallation fix
Browse files Browse the repository at this point in the history
Signed-off-by: eduponz <[email protected]>
  • Loading branch information
EduPonz committed May 20, 2024
1 parent a7ec05b commit a409489
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/reusable-mac-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,59 +46,59 @@ jobs:
steps:
- name: Add ci-pending label if PR
if: ${{ github.event_name == 'pull_request' }}
uses: eProsima/eProsima-CI/external/add_labels@v0
uses: eProsima/eProsima-CI/external/add_labels@hotfix/macos/install_colcon
with:
labels: ci-pending
number: ${{ github.event.number }}
repo: eProsima/Fast-DDS

- name: Sync eProsima/Fast-DDS repository
uses: eProsima/eProsima-CI/external/checkout@v0
uses: eProsima/eProsima-CI/external/checkout@hotfix/macos/install_colcon
with:
path: src/fastrtps
ref: ${{ inputs.fastdds-branch }}

- uses: eProsima/eProsima-CI/external/setup-python@v0
- uses: eProsima/eProsima-CI/external/setup-python@hotfix/macos/install_colcon
with:
python-version: '3.11'

- name: Get minimum supported version of CMake
uses: eProsima/eProsima-CI/external/get-cmake@v0
uses: eProsima/eProsima-CI/external/get-cmake@hotfix/macos/install_colcon
with:
cmakeVersion: '3.16.3'

- name: Install brew dependencies
uses: eProsima/eProsima-CI/macos/install_brew_packages@v0
uses: eProsima/eProsima-CI/macos/install_brew_packages@hotfix/macos/install_colcon
with:
packages: llvm asio tinyxml2 [email protected]
update: false
upgrade: false

- name: Install colcon
uses: eProsima/eProsima-CI/multiplatform/install_colcon@v0
uses: eProsima/eProsima-CI/multiplatform/install_colcon@hotfix/macos/install_colcon

- name: Install Python dependencies
uses: eProsima/eProsima-CI/multiplatform/install_python_packages@v0
uses: eProsima/eProsima-CI/multiplatform/install_python_packages@hotfix/macos/install_colcon
with:
packages: vcstool xmlschema
upgrade: false

- name: Setup CCache
uses: eProsima/eProsima-CI/external/setup-ccache-action@v0
uses: eProsima/eProsima-CI/external/setup-ccache-action@hotfix/macos/install_colcon

# TODO(eduponz): Update known hosts file for DNS resolver testing. NOTE: The runner cannot modify /etc/hosts.
# TODO(eduponz): Set up libp11 and SoftHSM. NOTE: using SoftHSM requires adding the runner to a group,
# which entails logout/login or rebooting the machine. This is not feasible in a CI environment.

- name: Fetch Fast DDS dependencies
uses: eProsima/eProsima-CI/multiplatform/vcs_import@v0
uses: eProsima/eProsima-CI/multiplatform/vcs_import@hotfix/macos/install_colcon
with:
vcs_repos_file: ${{ github.workspace }}/src/fastrtps/fastrtps.repos
destination_workspace: src
skip_existing: 'true'

- name: Fetch Fast DDS CI dependencies
uses: eProsima/eProsima-CI/multiplatform/vcs_import@v0
uses: eProsima/eProsima-CI/multiplatform/vcs_import@hotfix/macos/install_colcon
with:
vcs_repos_file: ${{ github.workspace }}/src/fastrtps/.github/workflows/config/ci.repos
destination_workspace: src
Expand All @@ -110,7 +110,7 @@ jobs:
# - Not working solution: https://github.com/macports/macports-ports/pull/21839/files
- name: Colcon build
continue-on-error: false
uses: eProsima/eProsima-CI/multiplatform/colcon_build@v0
uses: eProsima/eProsima-CI/multiplatform/colcon_build@hotfix/macos/install_colcon
with:
colcon_meta_file: ${{ github.workspace }}/src/fastrtps/.github/workflows/config/ci.meta
colcon_build_args: ${{ inputs.colcon-args }}
Expand All @@ -122,7 +122,7 @@ jobs:
- name: Colcon test
id: test
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-test') }}
uses: eProsima/eProsima-CI/multiplatform/colcon_test@v0
uses: eProsima/eProsima-CI/multiplatform/colcon_test@hotfix/macos/install_colcon
with:
colcon_test_args: ${{ inputs.colcon-args }}
colcon_test_args_default: --event-handlers=console_direct+
Expand All @@ -133,7 +133,7 @@ jobs:
test_report_artifact: ${{ format('test_report_{0}_{1}_{2}', inputs.label, github.job, join(matrix.*, '_')) }}

- name: Test summary
uses: eProsima/eProsima-CI/multiplatform/junit_summary@v0
uses: eProsima/eProsima-CI/multiplatform/junit_summary@hotfix/macos/install_colcon
if: ${{ !cancelled() && !contains(github.event.pull_request.labels.*.name, 'no-test') }}
with:
junit_reports_dir: "${{ steps.test.outputs.ctest_results_path }}"
Expand Down

0 comments on commit a409489

Please sign in to comment.