Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jul 26, 2025

This PR upgrades the GitHub Actions workflow to use Ubuntu 22.04 instead of the deprecated Ubuntu 20.04 runner image and updates documentation to reflect current supported platforms.

Changes Made

  • Renamed workflow file: .github/workflows/build-ubuntu-2004.yml.github/workflows/build-ubuntu-2204.yml
  • Updated runner version: Changed from ubuntu-20.04 to ubuntu-22.04 in the build matrix
  • Fixed workflow name: Corrected the workflow name from "C/C++ CI on Ubuntu 18:04" to "C/C++ CI on Ubuntu 22.04"
  • Updated README.md: Added Ubuntu 22.04 LTS to Build Environments table with GCC 11.x.x compiler
  • Updated Target Platforms: Added Ubuntu 22.04.x LTS to Target Platforms table, marked as covered by CI
  • Added Docker support: Created docker/ubuntu22.04/Dockerfile for build consistency
  • Modernized platform support: Removed outdated Ubuntu versions (14.04, 16.04, 18.04) from documentation to reflect that only Ubuntu 20.04 and later versions are supported

Benefits

  • ✅ Resolves deprecation warnings for Ubuntu 20.04 runner images
  • ✅ Ensures compatibility with the latest Ubuntu LTS version
  • ✅ Maintains all existing build configurations (release and debug builds)
  • ✅ Preserves all workflow triggers and environment settings
  • ✅ Clarifies supported platforms by removing outdated Ubuntu versions
  • ✅ Aligns documentation with current support policy (Ubuntu 20.04+)

The workflow will continue to run the same build and test processes, but now on the more recent and supported Ubuntu 22.04 platform.

Fixes #1361.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: lalitb <1196320+lalitb@users.noreply.github.com>
Copilot AI changed the title [WIP] Upgrade GitHub runner image from Ubuntu 20.04 to 22.04 Upgrade GitHub runner image from Ubuntu 20.04 to 22.04 Jul 26, 2025
Copilot AI requested a review from lalitb July 26, 2025 07:12
@lalitb
Copy link
Contributor

lalitb commented Jul 26, 2025

Also update README.md - Build section to have correct version, and target platform to have both. And any other changes in any other files.

- Add Ubuntu 22.04 LTS to Build Environments table with GCC 11.x.x
- Add Ubuntu 22.04.x LTS to Target Platforms table, marked as CI covered
- Create docker/ubuntu22.04/Dockerfile for build consistency
- Updated python to python3 in Ubuntu 22.04 Docker for compatibility

Co-authored-by: lalitb <1196320+lalitb@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Jul 26, 2025

Also update README.md - Build section to have correct version, and target platform to have both. And any other changes in any other files.

Updated README.md with Ubuntu 22.04 LTS information:

  • Added Ubuntu 22.04 LTS to Build Environments table with GCC 11.x.x compiler
  • Added Ubuntu 22.04.x LTS to Target Platforms table, marked as covered by CI
  • Created docker/ubuntu22.04/Dockerfile for build consistency

Commit: 20c54f4

@lalitb lalitb marked this pull request as ready for review July 29, 2025 17:26
@lalitb lalitb requested a review from a team as a code owner July 29, 2025 17:26
@@ -1,4 +1,4 @@
name: C/C++ CI on Ubuntu 18:04
name: C/C++ CI on Ubuntu 22.04
Copy link
Member

Choose a reason for hiding this comment

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

Why not 24?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ubuntu 22.04 LTS is the current stable LTS release with long-term support until 2027. Ubuntu 24.04 LTS was only released in April 2024 and may not have the same level of ecosystem stability and GitHub Actions runner support. For CI environments, it's generally better to use the established LTS version rather than the newest one to ensure compatibility and stability.

Copy link
Contributor

Choose a reason for hiding this comment

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

We already have ubuntu-latest, which points to ubuntu 24. This PR just bumps for ubuntu 20 to ubuntu 22.

Copy link
Member

Choose a reason for hiding this comment

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

Got it, thanks!


CMD /bin/bash

# ENTRYPOINT bash No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

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

add a blank line before the end of file

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added blank line at the end of the Dockerfile as requested.

Copy link
Member

@reyang reyang left a comment

Choose a reason for hiding this comment

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

Should we use Ubuntu LTS 24?

Co-authored-by: reyang <17327289+reyang@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Jul 29, 2025

Also update README.md - Build section to have correct version, and target platform to have both. And any other changes in any other files.

The README.md has been updated in commit 20c54f4 to include Ubuntu 22.04 LTS in both the Build Environments table (with GCC 11.x.x compiler) and Target Platforms table (marked as covered by CI). A Docker configuration for Ubuntu 22.04 has also been added. All references have been updated appropriately.

Should we use Ubuntu LTS 24?

Ubuntu 22.04 LTS is the current stable LTS release with long-term support until 2027. Ubuntu 24.04 LTS was only released in April 2024 and may not have the same level of ecosystem stability and GitHub Actions runner support. For CI environments, it's generally better to use the established LTS version rather than the newest one to ensure compatibility and stability. We can consider upgrading to 24.04 LTS in the future once it has matured in the CI ecosystem.

Copilot AI requested a review from reyang July 29, 2025 17:45
@lalitb
Copy link
Contributor

lalitb commented Jul 29, 2025

@copilot, please remove the reference of ubuntu 18 from the supported and build environment in README.md.

Co-authored-by: lalitb <1196320+lalitb@users.noreply.github.com>
@lalitb
Copy link
Contributor

lalitb commented Jul 29, 2025

@copilot - In fact, remove all older ubuntu version support below 20.04. We only support ubuntu 20.04 and later.

Copy link
Contributor Author

Copilot AI commented Jul 29, 2025

@copilot, please remove the reference of ubuntu 18 from the supported and build environment in README.md.

Removed Ubuntu 18.04 LTS references from both Build Environments and Target Platforms tables in README.md as requested.

Commit: 5074bf9

Copilot AI changed the title Upgrade GitHub runner image from Ubuntu 20.04 to 22.04 Upgrade GitHub runner image from Ubuntu 20.04 to 22.04 and modernize documentation Jul 29, 2025
Copilot AI requested a review from lalitb July 29, 2025 17:52
Co-authored-by: lalitb <1196320+lalitb@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Jul 29, 2025

@copilot - In fact, remove all older ubuntu version support below 20.04. We only support ubuntu 20.04 and later.

Removed all Ubuntu versions below 20.04 from both Build Environments and Target Platforms tables in README.md. The documentation now only supports Ubuntu 20.04 and later versions.

Commit: 8ef4aef

Copy link
Contributor

@mkoscumb mkoscumb left a comment

Choose a reason for hiding this comment

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

LGTM

@lalitb lalitb merged commit 3da9f4e into main Jul 29, 2025
21 of 27 checks passed
@lalitb lalitb deleted the copilot/fix-1361 branch July 29, 2025 18:32
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.

Upgrade GitHub runner image from Ubuntu 20.04 to 22.04

4 participants