TypeObjectRegistry refactor [21134] #1284
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
workflow_dispatch: | |
inputs: | |
foonathan_memory_vendor_branch: | |
description: 'foonathan_memory_vendor branch to be used' | |
required: false | |
default: 'master' | |
fastcdr_versions: | |
description: 'Fast CDR branches to be used' | |
required: false | |
default: '["master"]' | |
fastdds_branch: | |
description: 'Fast DDS branch to be used' | |
required: false | |
default: 'master' | |
pull_request: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: '0 0 * * *' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
windows-build-test: | |
runs-on: windows-2019 | |
strategy: | |
fail-fast: false | |
matrix: | |
foonathan_memory_vendor_version: | |
- ${{ github.event.inputs.foonathan_memory_vendor_branch || 'master' }} | |
fastcdr_version: ${{ fromJson(github.event.inputs.fastcdr_versions || '["master"]') }} | |
fastdds_version: | |
- ${{ github.event.inputs.fastdds_branch || 'master' }} | |
env: | |
CXXFLAGS: /MP | |
OPENSSL64_ROOT: "C:/Program Files/OpenSSL-Win64" | |
steps: | |
- uses: eProsima/eprosima-CI/windows/install_openssl@v0 | |
with: | |
version: '3.1.1' | |
- name: Install Asio and TinyXML2 | |
shell: pwsh | |
run: | | |
mkdir "$pwdpath/choco_packages" | |
Invoke-WebRequest -Uri https://github.com/ros2/choco-packages/releases/download/2020-02-24/asio.1.12.1.nupkg -OutFile "$pwdpath/choco_packages/asio.1.12.1.nupkg" | |
Invoke-WebRequest -Uri https://github.com/ros2/choco-packages/releases/download/2020-02-24/tinyxml2.6.0.0.nupkg -OutFile "$pwdpath/choco_packages/tinyxml2.6.0.0.nupkg" | |
choco install -y -s "$pwdpath/choco_packages" asio tinyxml2 | |
Set-Item -Force -Path "env:PATH" -Value "C:\ProgramData\chocolatey\lib\asio;C:\ProgramData\chocolatey\lib\tinyxml2;C:\ProgramData\chocolatey\lib\tinyxml2\lib;$env:PATH" | |
echo "PATH=$env:PATH" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | |
- name: Install swig | |
shell: pwsh | |
run: choco install swig --allow-downgrade --version=4.0.2.04082020 | |
- name: Setup Python version | |
uses: eProsima/eProsima-CI/external/setup-python@v0 | |
with: | |
python-version: '3.11' | |
- name: Install Python dependencies | |
uses: eProsima/eProsima-CI/multiplatform/install_python_packages@v0 | |
with: | |
packages: pytest pywin32 | |
- name: Install colcon | |
uses: eProsima/eProsima-CI/multiplatform/install_colcon@v0 | |
- name: Checkout Fast DDS Python | |
uses: eProsima/eProsima-CI/external/checkout@v0 | |
with: | |
path: src/fastdds_python | |
- name: Checkout foonathan memory vendor | |
uses: eProsima/eProsima-CI/external/checkout@v0 | |
with: | |
repository: eProsima/foonathan_memory_vendor | |
path: src/foonathan_memory_vendor | |
ref: ${{ matrix.foonathan_memory_vendor_version }} | |
- name: Checkout Fast CDR | |
uses: eProsima/eProsima-CI/external/checkout@v0 | |
with: | |
repository: eProsima/Fast-CDR | |
path: src/fastcdr | |
ref: ${{ matrix.fastcdr_version }} | |
- name: Checkout Fast DDS | |
uses: eProsima/eProsima-CI/external/checkout@v0 | |
with: | |
repository: eProsima/Fast-DDS | |
path: src/fastdds | |
ref: ${{ matrix.fastdds_version }} | |
- name: Setup CMake version | |
uses: eProsima/eProsima-CI/external/get-cmake@v0 | |
with: | |
cmakeVersion: 3.22.6 | |
- name: Setting ninja | |
id: ninja | |
if: github.event.schedule == '' | |
shell: pwsh | |
run: | | |
echo "cmake_generator=ninja" >> $Env:GITHUB_OUTPUT | |
- name: Setup ccache | |
uses: eProsima/eProsima-CI/external/setup-ccache-action@v0 | |
with: | |
windows_compile_environment: msvc | |
api_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build workspace | |
uses: eProsima/eProsima-CI/windows/colcon_build@v0 | |
with: | |
colcon_meta_file: ./src/fastdds_python/.github/workflows/test.meta | |
colcon_build_args: --executor parallel --mixin ccache ${{ steps.ninja.outputs.cmake_generator }} | |
colcon_build_args_default: --event-handlers console_direct+ desktop_notification- | |
cmake_build_type: RelWithDebInfo | |
cmake_args_default: ' ' | |
workspace: ${{ github.workspace }} | |
- name: Run tests | |
id: test | |
uses: eProsima/eProsima-CI/multiplatform/colcon_test@v0 | |
with: | |
colcon_test_args: --return-code-on-test-failure | |
colcon_test_args_default: --event-handlers console_direct+ desktop_notification- | |
ctest_args_default: --timeout 60 | |
packages_names: fastdds_python | |
workspace: ${{ github.workspace }} | |
workspace_dependencies: ${{ github.workspace }} | |
- name: Upload Logs | |
uses: actions/upload-artifact@v1 | |
with: | |
name: colcon-logs-windows | |
path: log/ | |
if: always() | |
ubuntu-build-test: | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
foonathan_memory_vendor_version: | |
- ${{ github.event.inputs.foonathan_memory_vendor_branch || 'master' }} | |
fastcdr_version: ${{ fromJson(github.event.inputs.fastcdr_versions || '["master"]') }} | |
fastdds_version: | |
- ${{ github.event.inputs.fastdds_branch || 'master' }} | |
steps: | |
- name: Checkout Fast DDS Python | |
uses: eProsima/eProsima-CI/external/checkout@v0 | |
with: | |
path: src/fastdds_python | |
- name: Install apt dependencies | |
uses: eProsima/eProsima-CI/ubuntu/install_apt_packages@v0 | |
with: | |
packages: libasio-dev libtinyxml2-dev libpython3-dev swig | |
- name: Install colcon | |
uses: eProsima/eProsima-CI/multiplatform/install_colcon@v0 | |
- name: Checkout foonathan memory vendor | |
uses: eProsima/eProsima-CI/external/checkout@v0 | |
with: | |
repository: eProsima/foonathan_memory_vendor | |
path: src/foonathan_memory_vendor | |
ref: ${{ matrix.foonathan_memory_vendor_version }} | |
- name: Checkout Fast CDR | |
uses: eProsima/eProsima-CI/external/checkout@v0 | |
with: | |
repository: eProsima/Fast-CDR | |
path: src/fastcdr | |
ref: ${{ matrix.fastcdr_version }} | |
- name: Checkout Fast DDS | |
uses: eProsima/eProsima-CI/external/checkout@v0 | |
with: | |
repository: eProsima/Fast-DDS | |
path: src/fastdds | |
ref: ${{ matrix.fastdds_version }} | |
- name: Setup CMake version | |
uses: eProsima/eProsima-CI/external/get-cmake@v0 | |
with: | |
cmakeVersion: 3.22.6 | |
- name: Setup ccache | |
uses: eProsima/eProsima-CI/external/setup-ccache-action@v0 | |
with: | |
api_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build workspace | |
uses: eProsima/eProsima-CI/multiplatform/colcon_build@v0 | |
with: | |
colcon_meta_file: ./src/fastdds_python/.github/workflows/test.meta | |
colcon_build_args: --executor parallel --mixin ccache | |
colcon_build_args_default: --event-handlers console_direct+ | |
cmake_build_type: RelWithDebInfo | |
cmake_args_default: '' | |
workspace: ${{ github.workspace }} | |
- name: Run tests | |
id: test | |
uses: eProsima/eProsima-CI/multiplatform/colcon_test@v0 | |
with: | |
colcon_test_args: --return-code-on-test-failure | |
colcon_test_args_default: --event-handlers console_direct+ | |
ctest_args_default: --timeout 60 | |
packages_names: fastdds_python | |
workspace: ${{ github.workspace }} | |
- name: Upload Logs | |
uses: actions/upload-artifact@v1 | |
with: | |
name: colcon-logs-ubuntu | |
path: log/ | |
if: always() |