Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[21267] Add Ubuntu weekly ci (backport #5038) (backport #5054) #5068

Merged
merged 2 commits into from
Aug 8, 2024
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
28 changes: 27 additions & 1 deletion .github/workflows/reusable-ubuntu-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,21 @@ on:
description: 'Branch or tag of Fast DDS repository (https://github.com/eProsima/Fast-DDS)'
required: true
type: string
fastcdr-branch:
description: 'Branch or tag of Fast CDR repository (https://github.com/eProsima/Fast-CDR)'
required: false
type: string
default: '1.0.x'
security:
description: 'Enable security features'
required: false
type: boolean
default: true
run-build:
description: 'Build Fast DDS (CI skipped otherwise)'
required: false
type: boolean
default: true
run-tests:
description: 'Run test suite of Fast DDS, Fast DDS python, and Fast DDS Discovery Server'
required: false
Expand All @@ -53,6 +63,7 @@ defaults:
jobs:
fastdds_build:
runs-on: ${{ inputs.os-image }}
if: ${{ inputs.run-build == true }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -105,6 +116,20 @@ jobs:
with:
api_token: ${{ secrets.GITHUB_TOKEN }}

- name: Get Fast CDR branch
id: get_fastcdr_branch
uses: eProsima/eProsima-CI/ubuntu/get_related_branch_from_repo@v0
with:
remote_repository: eProsima/Fast-CDR
fallback_branch: ${{ inputs.fastcdr-branch }}

- name: Download Fast CDR
uses: eProsima/eProsima-CI/external/checkout@v0
with:
repository: eProsima/Fast-CDR
path: ${{ github.workspace }}/src/fastcdr
ref: ${{ steps.get_fastcdr_branch.outputs.deduced_branch }}

- name: Fetch Fast DDS dependencies
uses: eProsima/eProsima-CI/multiplatform/vcs_import@v0
with:
Expand Down Expand Up @@ -296,10 +321,11 @@ jobs:
uses: eProsima/eProsima-CI/multiplatform/colcon_build@v0
with:
colcon_meta_file: ${{ github.workspace }}/src/fastrtps/.github/workflows/config/fastdds_build.meta
colcon_build_args: ${{ inputs.colcon-args }}
colcon_build_args: ${{ inputs.colcon-args }} --packages-select fastdds_python
cmake_args: '${{ env.security-cmake-flag }} ${{ inputs.cmake-args }}'
cmake_args_default: ''
cmake_build_type: ${{ matrix.cmake-build-type }}
workspace_dependencies: ${{ github.workspace }}/install
workspace: ${{ github.workspace }}

- name: Upload python build artifacts
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/ubuntu-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ on:
description: 'Branch or tag of Fast DDS repository (https://github.com/eProsima/Fast-DDS)'
type: string
required: true
fastcdr_branch:
description: 'Branch or tag of Fast CDR repository (https://github.com/eProsima/Fast-CDR)'
type: string
required: false
default: '1.0.x'
security:
description: 'Enable security features'
required: false
Expand Down Expand Up @@ -54,10 +59,7 @@ concurrency:
jobs:
ubuntu-ci:

if: ${{ (
!contains(github.event.pull_request.labels.*.name, 'skip-ci') &&
!contains(github.event.pull_request.labels.*.name, 'conflicts')
) }}
if: ${{ !(github.event_name == 'pull_request') || !contains(github.event.pull_request.labels.*.name, 'conflicts') }}
uses: ./.github/workflows/reusable-ubuntu-ci.yml
with:
# It would be desirable to have a matrix of ubuntu OS for this job, but due to the issue opened in this ticket:
Expand All @@ -68,6 +70,8 @@ jobs:
cmake-args: ${{ inputs.cmake-args }}
ctest-args: ${{ inputs.ctest-args || '-LE xfail' }}
fastdds-branch: ${{ inputs.fastdds_branch || github.ref || '2.6.x' }}
fastcdr-branch: ${{ inputs.fastcdr_branch || '1.0.x' }}
security: ${{ ((inputs.security == true) && true) || github.event_name == 'pull_request' }}
run-build: ${{ !(github.event_name == 'pull_request') || !contains(github.event.pull_request.labels.*.name, 'skip-ci') }}
run-tests: ${{ ((inputs.run-tests == true) && true) || (github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'no-test')) }}
use-ccache: ${{ ((inputs.use-ccache == true) && true) || false }}
Loading