Skip to content

Commit cdd662a

Browse files
Update CI to use eProsima utilities (#74)
* Update CI to use eProsima utilities. Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Remove old actions. Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Delete artifact step Signed-off-by: Carlosespicur <carlosespicur@proton.me> --------- Signed-off-by: Carlosespicur <carlosespicur@proton.me>
1 parent f18adaf commit cdd662a

File tree

11 files changed

+262
-403
lines changed

11 files changed

+262
-403
lines changed

.github/actions/install-apt-packages/action.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/actions/install-gtest-linux/action.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/actions/install-openssl-windows/action.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/actions/install-python-packages/action.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/actions/run-test-ubuntu/action.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"names":
3+
{
4+
"foonathan_memory":
5+
{
6+
"cmake-args":
7+
[
8+
"-DCMAKE_CXX_FLAGS='/WX /EHsc'",
9+
"-Ax64",
10+
"-T host=x64",
11+
"-DBUILD_SHARED_LIBS=OFF",
12+
"-DFOONATHAN_MEMORY_BUILD_TOOLS=ON",
13+
"-DCMAKE_POSITION_INDEPENDENT_CODE=ON",
14+
"-DFOONATHAN_MEMORY_BUILD_TESTS=OFF"
15+
]
16+
},
17+
18+
"fastcdr":
19+
{
20+
"cmake-args":
21+
[
22+
"-DCMAKE_CXX_FLAGS='/WX /EHsc'",
23+
"-Ax64",
24+
"-T host=x64"
25+
]
26+
},
27+
28+
"fastdds":
29+
{
30+
"cmake-args":
31+
[
32+
"-DCMAKE_CXX_FLAGS='/WX /EHsc'",
33+
"-Ax64",
34+
"-T host=x64",
35+
"-DFASTDDS_STATISTICS=ON",
36+
"-DTHIRDPARTY=ON",
37+
"-DSECURITY=ON",
38+
"-DCOMPILE_EXAMPLES=OFF",
39+
"-DEPROSIMA_BUILD_TESTS=OFF",
40+
"-DINTERNAL_DEBUG=ON"
41+
]
42+
},
43+
44+
"fastdds_visualizer_plugin":
45+
{
46+
"cmake-args":
47+
[
48+
"-DCMAKE_CXX_FLAGS='/WX /EHsc'",
49+
"-Ax64",
50+
"-T host=x64",
51+
"-DQT_PATH=$GITHUB_WORKSPACE/qt_installation/Qt/5.15.2"
52+
]
53+
},
54+
55+
"plotjuggler":
56+
{
57+
"cmake-args":
58+
[
59+
"-DCMAKE_CXX_FLAGS='/WX /EHsc'",
60+
"-Ax64",
61+
"-T host=x64"
62+
]
63+
}
64+
}
65+
}

.github/workflows/requirements.repos

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 175 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,175 @@
1+
name: test
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
custom_version_build:
7+
description: >
8+
Version of Fast DDS build from eProsima-CI.
9+
required: true
10+
type: string
11+
ref:
12+
description: >
13+
The branch or tag name to checkout.
14+
required: true
15+
type: string
16+
default: 'main'
17+
18+
jobs:
19+
20+
#####################################################################
21+
# TEST
22+
23+
multiplatform-build:
24+
runs-on: ${{ matrix.os.version }}
25+
strategy:
26+
fail-fast: false
27+
matrix:
28+
cmake_build_type:
29+
- Release
30+
- Debug
31+
os:
32+
- version: ubuntu-22.04
33+
aarch: 'gcc_64'
34+
- version: ubuntu-24.04
35+
aarch: 'gcc_64'
36+
- version: windows-2019
37+
aarch: 'win64_msvc2019_64'
38+
- version: windows-2022
39+
aarch: 'win64_msvc2019_64'
40+
41+
steps:
42+
43+
- name: Sync repository
44+
uses: eProsima/eProsima-CI/external/checkout@v0
45+
with:
46+
path: src/fastdds_visualizer_plugin
47+
ref: ${{ inputs.ref }}
48+
49+
- name: Install Fast DDS dependencies
50+
uses: eProsima/eProsima-CI/multiplatform/install_fastdds_dependencies@v0
51+
with:
52+
cmake_build_type: ${{ matrix.cmake_build_type }}
53+
54+
- name: Fetch Fast DDS Visualizer Plugin repositories
55+
uses: eProsima/eProsima-CI/multiplatform/vcs_import@v0
56+
with:
57+
vcs_repos_file: ${{ github.workspace }}//src/fastdds_visualizer_plugin/fastdds_visualizer_plugin.repos
58+
destination_workspace: ${{ github.workspace }}/src
59+
skip_existing: 'true'
60+
61+
- name: Install apt packages
62+
if: runner.os == 'Linux'
63+
uses: eProsima/eProsima-CI/ubuntu/install_apt_packages@v0
64+
with:
65+
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
66+
67+
- name: Install Ubuntu Python packages
68+
if: ${{ runner.os == 'Linux' }}
69+
uses: eProsima/eProsima-CI/multiplatform/install_python_packages@v0
70+
with:
71+
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
72+
73+
- name: Install Windows Python packages
74+
if: ${{ runner.os == 'Windows' }}
75+
uses: eProsima/eProsima-CI/multiplatform/install_python_packages@v0
76+
with:
77+
packages: sphinx doc8 sphinx_rtd_theme sphinxcontrib.spelling sphinxcontrib-imagehelper colcon-common-extensions colcon-mixin vcstool GitPython setuptools gcovr==5.0 pyyaml jsonschema
78+
79+
- name: Install Qt
80+
uses: eProsima/eProsima-CI/external/install_qt@v0
81+
with:
82+
dir: '${{ github.workspace }}/qt_installation/'
83+
modules: 'qtcharts'
84+
arch: ${{ matrix.os.aarch }}
85+
setup-python: 'false'
86+
87+
- name: Install OpenSSL in windows
88+
if: runner.os == 'Windows'
89+
shell: pwsh
90+
run: >
91+
choco install openssl -yr --no-progress;
92+
@(ls -Path C:\Windows\System32\* -Include libssl-*.dll; ls -Path C:\Windows\SysWOW64\* -Include libssl-*.dll)
93+
| rm -ErrorAction SilentlyContinue
94+
95+
- name: Compile and run tests
96+
uses: eProsima/eProsima-CI/multiplatform/colcon_build_test@v0
97+
env:
98+
QT_QPA_PLATFORM: 'offscreen'
99+
with:
100+
packages_names: fastdds_visualizer_plugin
101+
cmake_build_type: ${{ matrix.cmake_build_type }}
102+
cmake_args: '-DTHIRDPARTY=ON -DBUILD_DOCUMENTATION=OFF -DBUILD_DOCUMENTATION_TESTS=OFF'
103+
colcon_meta_file: ${{ github.workspace }}/src/fastdds_monitor/.github/workflows/configurations/${{ runner.os }}/colcon.meta
104+
workspace: ${{ github.workspace }}
105+
test_report_artifact: 'fastdds_visualizer_plugin_${{ matrix.os.version }}_${{ matrix.cmake_build_type }}'
106+
107+
108+
#####################################################################
109+
# DOCUMENTATION
110+
111+
#####################################################################
112+
# TEST
113+
114+
documentation:
115+
runs-on: ubuntu-24.04
116+
steps:
117+
- name: Sync repository
118+
uses: eProsima/eProsima-CI/external/checkout@v0
119+
with:
120+
path: src/fastdds_visualizer_plugin
121+
ref: ${{ inputs.ref }}
122+
123+
- name: Install Fast DDS dependencies
124+
uses: eProsima/eProsima-CI/multiplatform/install_fastdds_dependencies@v0
125+
with:
126+
cmake_build_type: 'Release'
127+
128+
- name: Fetch Fast DDS Visualizer Plugin repositories
129+
uses: eProsima/eProsima-CI/multiplatform/vcs_import@v0
130+
with:
131+
vcs_repos_file: ${{ github.workspace }}//src/fastdds_visualizer_plugin/fastdds_visualizer_plugin.repos
132+
destination_workspace: ${{ github.workspace }}/src
133+
skip_existing: 'true'
134+
135+
- name: Install apt packages
136+
uses: eProsima/eProsima-CI/ubuntu/install_apt_packages@v0
137+
with:
138+
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
139+
140+
- name: Install Python packages
141+
uses: eProsima/eProsima-CI/multiplatform/install_python_packages@v0
142+
with:
143+
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
144+
145+
- name: Install Qt
146+
uses: eProsima/eProsima-CI/external/install_qt@v0
147+
with:
148+
dir: '${{ github.workspace }}/qt_installation/'
149+
modules: 'qtcharts'
150+
setup-python: 'false'
151+
152+
- name: Compile and run tests
153+
uses: eProsima/eProsima-CI/multiplatform/colcon_build_test@v0
154+
with:
155+
packages_names: fastdds_visualizer_plugin
156+
cmake_build_type: 'Release'
157+
colcon_meta_file: ${{ github.workspace }}/src/fastdds_monitor/.github/workflows/configurations/Linux/test_documentation.meta
158+
workspace: ${{ github.workspace }}
159+
test_report_artifact: 'fastdds_visualizer_plugin_documentation'
160+
161+
#####################################################################
162+
# UNCRUSTIFY
163+
164+
uncrustify:
165+
runs-on: ubuntu-24.04
166+
steps:
167+
168+
- name: Sync repository
169+
uses: eProsima/eProsima-CI/external/checkout@v0
170+
with:
171+
path: src
172+
ref: ${{ inputs.ref }}
173+
174+
- name: Uncrustify
175+
uses: eProsima/eProsima-CI/ubuntu/uncrustify@v0

0 commit comments

Comments
 (0)