|
| 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