|
| 1 | +name: Fast DDS Sanitizers CI |
| 2 | + |
| 3 | +on: |
| 4 | + workflow_dispatch: |
| 5 | + inputs: |
| 6 | + label: |
| 7 | + description: 'ID associated to the workflow' |
| 8 | + required: true |
| 9 | + type: string |
| 10 | + run_asan_fastdds: |
| 11 | + description: 'Run Addess Sanitizer job for Fast DDS' |
| 12 | + required: false |
| 13 | + type: boolean |
| 14 | + run_asan_discovery_server: |
| 15 | + description: 'Run Addess Sanitizer job for Discovery Server' |
| 16 | + required: false |
| 17 | + type: boolean |
| 18 | + run_tsan_fastdds: |
| 19 | + description: 'Run Thread Sanitizer job for Fast DDS' |
| 20 | + required: false |
| 21 | + type: boolean |
| 22 | + colcon_build_args: |
| 23 | + description: 'Optional colcon build arguments' |
| 24 | + required: false |
| 25 | + type: string |
| 26 | + colcon_test_args: |
| 27 | + description: 'Optional colcon test arguments' |
| 28 | + required: false |
| 29 | + type: string |
| 30 | + cmake_args: |
| 31 | + description: 'Optional CMake Compilation Flags' |
| 32 | + required: false |
| 33 | + type: string |
| 34 | + ctest_args: |
| 35 | + description: 'Optional CTest Testing Flags' |
| 36 | + required: false |
| 37 | + type: string |
| 38 | + fastdds_ref: |
| 39 | + description: 'Branch or tag of Fast DDS repository (https://github.com/eProsima/Fast-DDS)' |
| 40 | + required: true |
| 41 | + discovery_server_ref: |
| 42 | + description: > |
| 43 | + Branch or tag of Discovery Server repository (https://github.com/eProsima/Discovery-Server) |
| 44 | + Required only if the Discovery Server job is requested |
| 45 | + required: false |
| 46 | + |
| 47 | + pull_request: |
| 48 | + types: |
| 49 | + - review_requested |
| 50 | + paths-ignore: |
| 51 | + - '**.md' |
| 52 | + - '**.txt' |
| 53 | + - '!**/CMakeLists.txt' |
| 54 | + |
| 55 | +concurrency: |
| 56 | + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} |
| 57 | + cancel-in-progress: true |
| 58 | + |
| 59 | +jobs: |
| 60 | + sanitizers-ci: |
| 61 | + if: ${{ ( |
| 62 | + !contains(github.event.pull_request.labels.*.name, 'skip-ci') && |
| 63 | + !contains(github.event.pull_request.labels.*.name, 'no-test') && |
| 64 | + !contains(github.event.pull_request.labels.*.name, 'conflicts') |
| 65 | + ) }} |
| 66 | + uses: ./.github/workflows/reusable-sanitizers-ci.yml |
| 67 | + with: |
| 68 | + label: ${{ inputs.label || 'fastdds-sanitizers-ci' }} |
| 69 | + run_asan_fastdds: ${{ ((inputs.run_asan_fastdds == true) && true) || github.event_name == 'pull_request' }} |
| 70 | + run_asan_discovery_server: ${{ ((inputs.run_asan_discovery_server == true) && true) || github.event_name == 'pull_request' }} |
| 71 | + run_tsan_fastdds: ${{ ((inputs.run_tsan_fastdds == true) && true) || github.event_name == 'pull_request' }} |
| 72 | + colcon_build_args: ${{ inputs.colcon_build_args || '' }} |
| 73 | + colcon_test_args: ${{ inputs.colcon_test_args || '' }} |
| 74 | + cmake_args: ${{ inputs.cmake_args || '' }} |
| 75 | + ctest_args: ${{ inputs.ctest_args || '' }} |
| 76 | + fastdds_ref: ${{ inputs.fastdds_ref || github.ref || 'master' }} |
| 77 | + discovery_server_ref: ${{ inputs.discovery_server_ref || 'master' }} |
0 commit comments