Skip to content

Conversation

minggangw
Copy link
Member

@minggangw minggangw commented May 16, 2025

This PR ensures ARM64 build jobs only run on the develop branch and extends branch checks to pull request contexts.

  • Added a matrix-prep job that outputs an ARM64 matrix only when targeting develop.
  • Updated the build job to depend on matrix-prep and dynamically include ARM64 config.
  • Enhanced ROS distro detection to consider both github.ref and github.base_ref for branch-based flags.

Fix: #1131

@coveralls
Copy link

coveralls commented May 16, 2025

Coverage Status

coverage: 84.742%. remained the same
when pulling da4100e on minggangw:arm64-only-on-develop
into 79ac1b0 on RobotWebTools:develop.

@minggangw minggangw requested a review from Copilot May 17, 2025 15:18
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR ensures ARM64 build jobs only run on the develop branch and extends branch checks to pull request contexts.

  • Added a matrix-prep job that outputs an ARM64 matrix only when targeting develop.
  • Updated the build job to depend on matrix-prep and dynamically include ARM64 config.
  • Enhanced ROS distro detection to consider both github.ref and github.base_ref for branch-based flags.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/linux-build-and-test.yml Introduced matrix-prep job and wired dynamic ARM64 matrix into the build strategy.
.github/workflows/identify-ros-distro.yml Adjusted environment variables to check both github.ref and github.base_ref for branches.
Comments suppressed due to low confidence (1)

.github/workflows/linux-build-and-test.yml:41

  • Using runs-on: ubuntu-${{ matrix.ubuntu-version }} may resolve to invalid runner labels like ubuntu-24.04-arm, which are not supported by GitHub-hosted runners. Consider using a valid runner label (e.g., ubuntu-latest) and configuring architecture separately or setting up a self-hosted runner.
runs-on: ubuntu-${{ matrix.ubuntu-version }}

steps:
- id: set-matrix
run: |
if [[ ${{ contains(github.base_ref, 'develop') || contains(github.ref, 'develop') }} ]]; then
Copy link

Copilot AI May 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bash conditional [[ ${{ ... }} ]] always succeeds since both 'true' and 'false' are non-empty strings. Compare the expression explicitly to 'true' (e.g., if [ "${{ contains(...) }}" = 'true' ]; then) or use if ${{ contains(...) }}; then to make the branch logic correct.

Suggested change
if [[ ${{ contains(github.base_ref, 'develop') || contains(github.ref, 'develop') }} ]]; then
if [ "${{ contains(github.base_ref, 'develop') || contains(github.ref, 'develop') }}" = 'true' ]; then

Copilot uses AI. Check for mistakes.

@minggangw minggangw changed the base branch from develop to jazzy May 17, 2025 15:39
@minggangw minggangw changed the base branch from jazzy to develop May 17, 2025 15:40
@minggangw minggangw merged commit 76f1b0f into RobotWebTools:develop May 17, 2025
14 checks passed
minggangw added a commit that referenced this pull request May 17, 2025
This PR ensures ARM64 build jobs only run on the `develop` branch and extends branch checks to pull request contexts.

- Added a `matrix-prep` job that outputs an ARM64 matrix only when targeting `develop`.
- Updated the build job to depend on `matrix-prep` and dynamically include ARM64 config.
- Enhanced ROS distro detection to consider both `github.ref` and `github.base_ref` for branch-based flags.

Fix: #1131
minggangw added a commit that referenced this pull request May 17, 2025
This PR ensures ARM64 build jobs only run on the `develop` branch and extends branch checks to pull request contexts.

- Added a `matrix-prep` job that outputs an ARM64 matrix only when targeting `develop`.
- Updated the build job to depend on `matrix-prep` and dynamically include ARM64 config.
- Enhanced ROS distro detection to consider both `github.ref` and `github.base_ref` for branch-based flags.

Fix: #1131
minggangw added a commit that referenced this pull request May 17, 2025
This PR ensures ARM64 build jobs only run on the `develop` branch and extends branch checks to pull request contexts.

- Added a `matrix-prep` job that outputs an ARM64 matrix only when targeting `develop`.
- Updated the build job to depend on `matrix-prep` and dynamically include ARM64 config.
- Enhanced ROS distro detection to consider both `github.ref` and `github.base_ref` for branch-based flags.

Fix: #1131
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support arm64 arch for ROS2 Rolling

2 participants