Skip to content
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

[20091] Add macOS to gihub actions testing #197

Merged
merged 6 commits into from
Feb 20, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/config/colcon.meta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
names:
googletest-distribution:
cmake-args:
- "-Dgtest_force_shared_crt=ON"
- "-DBUILD_SHARED_LIBS=ON"
- "-DBUILD_GMOCK=ON"
46 changes: 24 additions & 22 deletions .github/workflows/fastcdr-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
push:
branches:
- master
- 1.1.x
- 1.0.x

workflow_dispatch:
Expand All @@ -30,6 +31,7 @@ on:
pull_request:
branches:
- master
- 1.1.x
- 1.0.x
paths-ignore:
- '**.md'
Expand All @@ -54,37 +56,37 @@ jobs:
- 'ubuntu-20.04'
- 'ubuntu-22.04'
- 'windows-2019'
- 'macos-13'
EduPonz marked this conversation as resolved.
Show resolved Hide resolved

steps:
- name: Sync eProsima/Fast-CDR repository
uses: eProsima/eProsima-CI/external/checkout@v0
uses: eProsima/eProsima-CI/external/checkout@feature/fastdds_mac_ci_support
JesusPoderoso marked this conversation as resolved.
Show resolved Hide resolved
with:
path: src/Fast-CDR
path: src/Fast-CDR

- name: Sync GTest
uses: eProsima/eProsima-CI/external/checkout@feature/fastdds_mac_ci_support
with:
path: src/googletest
repository: google/googletest
ref: 'release-1.12.1'

- uses: eProsima/eProsima-CI/external/setup-python@feature/fastdds_mac_ci_support
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@feature/fastdds_mac_ci_support
with:
cmakeVersion: '3.22.6'

- name: Install Colcon dependencies
uses: eProsima/eProsima-CI/multiplatform/install_colcon@v0

# Temporal step as this platform will be discontinued soon
- name: Install Gtest Backwards Compatibility
if: ${{ matrix.runner-image == 'ubuntu-20.04' }}
run: |
git clone --branch release-1.12.1 https://github.com/google/googletest.git && \
colcon build \
--event-handlers=console_direct+ \
--packages-select googletest-distribution

- name: Install Gtest
if: ${{ matrix.runner-image != 'ubuntu-20.04' }}
uses: eProsima/eProsima-CI/multiplatform/install_gtest@v0
uses: eProsima/eProsima-CI/multiplatform/install_colcon@feature/fastdds_mac_ci_support

- name: Colcon build
uses: eProsima/eProsima-CI/multiplatform/colcon_build@v0
uses: eProsima/eProsima-CI/multiplatform/colcon_build@feature/fastdds_mac_ci_support
with:
colcon_meta_file: ${{ github.workspace }}/src/Fast-CDR/.github/workflows/config/colcon.meta
colcon_build_args_default: --event-handlers=console_direct+
cmake_args: ${{ inputs.cmake_args }}
cmake_args_default: -DBUILD_TESTING=ON
Expand All @@ -93,7 +95,7 @@ jobs:

- name: Colcon test
id: test
uses: eProsima/eProsima-CI/multiplatform/colcon_test@v0
uses: eProsima/eProsima-CI/multiplatform/colcon_test@feature/fastdds_mac_ci_support
with:
colcon_test_args_default: --event-handlers=console_direct+ --return-code-on-test-failure
ctest_args: ${{ inputs.ctest_args }}
Expand All @@ -102,17 +104,17 @@ jobs:
workspace: ${{ github.workspace }}

- name: Test summary
uses: eProsima/eProsima-CI/multiplatform/junit_summary@v0
uses: eProsima/eProsima-CI/multiplatform/junit_summary@feature/fastdds_mac_ci_support
if: ${{ !cancelled() && !contains(github.event.pull_request.labels.*.name, 'no-test') }}
with:
junit_reports_dir: "${{ steps.test.outputs.ctest_results_path }}"
junit_reports_dir: ${{ steps.test.outputs.ctest_results_path }}
print_summary: 'True'
show_failed: 'True'
show_disabled: 'False'
show_skipped: 'False'

- name: Test Report
uses: eProsima/eProsima-CI/external/test-reporter@v0
uses: eProsima/eProsima-CI/external/test-reporter@feature/fastdds_mac_ci_support
if: ${{ !cancelled() && !contains(github.event.pull_request.labels.*.name, 'no-test') }}
with:
name: "Report: ${{ matrix.runner-image }}"
Expand Down
Loading