Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
25 changes: 0 additions & 25 deletions .github/actions/install-apt-packages/action.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/actions/install-gtest-linux/action.yml

This file was deleted.

10 changes: 0 additions & 10 deletions .github/actions/install-openssl-windows/action.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/actions/install-python-packages/action.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/actions/run-test-ubuntu/action.yml

This file was deleted.

65 changes: 65 additions & 0 deletions .github/workflows/configurations/Windows/colcon.meta
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"names":
{
"foonathan_memory":
{
"cmake-args":
[
"-DCMAKE_CXX_FLAGS='/WX /EHsc'",
"-Ax64",
"-T host=x64",
"-DBUILD_SHARED_LIBS=OFF",
"-DFOONATHAN_MEMORY_BUILD_TOOLS=ON",
"-DCMAKE_POSITION_INDEPENDENT_CODE=ON",
"-DFOONATHAN_MEMORY_BUILD_TESTS=OFF"
]
},

"fastcdr":
{
"cmake-args":
[
"-DCMAKE_CXX_FLAGS='/WX /EHsc'",
"-Ax64",
"-T host=x64"
]
},

"fastdds":
{
"cmake-args":
[
"-DCMAKE_CXX_FLAGS='/WX /EHsc'",
"-Ax64",
"-T host=x64",
"-DFASTDDS_STATISTICS=ON",
"-DTHIRDPARTY=ON",
"-DSECURITY=ON",
"-DCOMPILE_EXAMPLES=OFF",
"-DEPROSIMA_BUILD_TESTS=OFF",
"-DINTERNAL_DEBUG=ON"
]
},

"fastdds_visualizer_plugin":
{
"cmake-args":
[
"-DCMAKE_CXX_FLAGS='/WX /EHsc'",
"-Ax64",
"-T host=x64",
"-DQT_PATH=$GITHUB_WORKSPACE/qt_installation/Qt/5.15.2"
]
},

"plotjuggler":
{
"cmake-args":
[
"-DCMAKE_CXX_FLAGS='/WX /EHsc'",
"-Ax64",
"-T host=x64"
]
}
}
}
17 changes: 0 additions & 17 deletions .github/workflows/requirements.repos

This file was deleted.

175 changes: 175 additions & 0 deletions .github/workflows/reusable-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
name: test

on:
workflow_call:
inputs:
custom_version_build:
description: >
Version of Fast DDS build from eProsima-CI.
required: true
type: string
ref:
description: >
The branch or tag name to checkout.
required: true
type: string
default: 'main'

jobs:

#####################################################################
# TEST

multiplatform-build:
runs-on: ${{ matrix.os.version }}
strategy:
fail-fast: false
matrix:
cmake_build_type:
- Release
- Debug
os:
- version: ubuntu-22.04
aarch: 'gcc_64'
- version: ubuntu-24.04
aarch: 'gcc_64'
- version: windows-2019
aarch: 'win64_msvc2019_64'
- version: windows-2022
aarch: 'win64_msvc2019_64'

steps:

- name: Sync repository
uses: eProsima/eProsima-CI/external/checkout@v0
with:
path: src/fastdds_visualizer_plugin
ref: ${{ inputs.ref }}

- name: Install Fast DDS dependencies
uses: eProsima/eProsima-CI/multiplatform/install_fastdds_dependencies@v0
with:
cmake_build_type: ${{ matrix.cmake_build_type }}

- name: Fetch Fast DDS Visualizer Plugin repositories
uses: eProsima/eProsima-CI/multiplatform/vcs_import@v0
with:
vcs_repos_file: ${{ github.workspace }}//src/fastdds_visualizer_plugin/fastdds_visualizer_plugin.repos
destination_workspace: ${{ github.workspace }}/src
skip_existing: 'true'

- name: Install apt packages
if: runner.os == 'Linux'
uses: eProsima/eProsima-CI/ubuntu/install_apt_packages@v0
with:
packages: clang-tidy curl doxygen graphviz grep imagemagick libasio-dev libtinyxml2-dev libyaml-cpp-dev lcov python3 python3-pip python3-sphinxcontrib.spelling python3-venv software-properties-common wget

- name: Install Ubuntu Python packages
if: ${{ runner.os == 'Linux' }}
uses: eProsima/eProsima-CI/multiplatform/install_python_packages@v0
with:
packages: sphinx==7.3.6 doc8==0.10.1 sphinx_rtd_theme==2.0.0 sphinxcontrib.spelling==8.0.0 sphinxcontrib-imagehelper==1.1.1 colcon-common-extensions colcon-mixin vcstool GitPython setuptools gcovr==5.0 pyyaml jsonschema

- name: Install Windows Python packages
if: ${{ runner.os == 'Windows' }}
uses: eProsima/eProsima-CI/multiplatform/install_python_packages@v0
with:
packages: sphinx doc8 sphinx_rtd_theme sphinxcontrib.spelling sphinxcontrib-imagehelper colcon-common-extensions colcon-mixin vcstool GitPython setuptools gcovr==5.0 pyyaml jsonschema

- name: Install Qt
uses: eProsima/eProsima-CI/external/install_qt@v0
with:
dir: '${{ github.workspace }}/qt_installation/'
modules: 'qtcharts'
arch: ${{ matrix.os.aarch }}
setup-python: 'false'

- name: Install OpenSSL in windows
if: runner.os == 'Windows'
shell: pwsh
run: >
choco install openssl -yr --no-progress;
@(ls -Path C:\Windows\System32\* -Include libssl-*.dll; ls -Path C:\Windows\SysWOW64\* -Include libssl-*.dll)
| rm -ErrorAction SilentlyContinue

- name: Compile and run tests
uses: eProsima/eProsima-CI/multiplatform/colcon_build_test@v0
env:
QT_QPA_PLATFORM: 'offscreen'
with:
packages_names: fastdds_visualizer_plugin
cmake_build_type: ${{ matrix.cmake_build_type }}
cmake_args: '-DTHIRDPARTY=ON -DBUILD_DOCUMENTATION=OFF -DBUILD_DOCUMENTATION_TESTS=OFF'
colcon_meta_file: ${{ github.workspace }}/src/fastdds_monitor/.github/workflows/configurations/${{ runner.os }}/colcon.meta
workspace: ${{ github.workspace }}
test_report_artifact: 'fastdds_visualizer_plugin_${{ matrix.os.version }}_${{ matrix.cmake_build_type }}'


#####################################################################
# DOCUMENTATION

#####################################################################
# TEST

documentation:
runs-on: ubuntu-24.04
steps:
- name: Sync repository
uses: eProsima/eProsima-CI/external/checkout@v0
with:
path: src/fastdds_visualizer_plugin
ref: ${{ inputs.ref }}

- name: Install Fast DDS dependencies
uses: eProsima/eProsima-CI/multiplatform/install_fastdds_dependencies@v0
with:
cmake_build_type: 'Release'

- name: Fetch Fast DDS Visualizer Plugin repositories
uses: eProsima/eProsima-CI/multiplatform/vcs_import@v0
with:
vcs_repos_file: ${{ github.workspace }}//src/fastdds_visualizer_plugin/fastdds_visualizer_plugin.repos
destination_workspace: ${{ github.workspace }}/src
skip_existing: 'true'

- name: Install apt packages
uses: eProsima/eProsima-CI/ubuntu/install_apt_packages@v0
with:
packages: clang-tidy curl doxygen graphviz grep imagemagick libasio-dev libtinyxml2-dev libyaml-cpp-dev lcov python3 python3-pip python3-sphinxcontrib.spelling python3-venv software-properties-common wget

- name: Install Python packages
uses: eProsima/eProsima-CI/multiplatform/install_python_packages@v0
with:
packages: sphinx==7.3.6 doc8==0.10.1 sphinx_rtd_theme==2.0.0 sphinxcontrib.spelling==8.0.0 sphinxcontrib-imagehelper==1.1.1 colcon-common-extensions colcon-mixin vcstool GitPython setuptools gcovr==5.0 pyyaml jsonschema

- name: Install Qt
uses: eProsima/eProsima-CI/external/install_qt@v0
with:
dir: '${{ github.workspace }}/qt_installation/'
modules: 'qtcharts'
setup-python: 'false'

- name: Compile and run tests
uses: eProsima/eProsima-CI/multiplatform/colcon_build_test@v0
with:
packages_names: fastdds_visualizer_plugin
cmake_build_type: 'Release'
colcon_meta_file: ${{ github.workspace }}/src/fastdds_monitor/.github/workflows/configurations/Linux/test_documentation.meta
workspace: ${{ github.workspace }}
test_report_artifact: 'fastdds_visualizer_plugin_documentation'

#####################################################################
# UNCRUSTIFY

uncrustify:
runs-on: ubuntu-24.04
steps:

- name: Sync repository
uses: eProsima/eProsima-CI/external/checkout@v0
with:
path: src
ref: ${{ inputs.ref }}

- name: Uncrustify
uses: eProsima/eProsima-CI/ubuntu/uncrustify@v0
Loading
Loading