官方更新 GitHub Changelog Thu, 17 Sep 2026 正文 ok 239 words

Ubuntu 26 正式可用,ubuntu-latest 即将迁移

英文标题:Ubuntu 26 generally available and latest migration

GitHub Actions 的 Ubuntu 26.04 runner 镜像已结束公开预览,并在 x64 和 arm64 平台上获得生产工作流的全面支持。开发者可通过 `ubuntu-26.04` 或 `ubuntu-26.04-arm` 运行工作流。`ubuntu-latest` 将在 2026 年 10 月 19 日至 11 月 19 日期间,从 Ubuntu 24.04 分阶段迁移至 Ubuntu 26.04。由于新版镜像更新或移除了部分工具、软件包及版本,依赖特定预装软件的构建可能会中断,开发者应提前测试或暂时固定至 `ubuntu-24.04`。
打开原文相关 2 · 机会 4
media16.2 KB media123.6 KB

中文

GitHub Actions 的 Ubuntu 26.04 runner 镜像现已结束公开预览,并在 x64 和 arm64 平台上全面支持生产工作流。作为此次发布的一部分,ubuntu-latest 标签将迁移至 Ubuntu 26.04,默认提供最新受支持的 Ubuntu 版本。

如需在新镜像上运行工作流,请在工作流文件中设置 runs-on: ubuntu-26.04 或 runs-on: ubuntu-26.04-arm。与较早的镜像相比,Ubuntu 26.04 更新了部分工具和工具版本,并在某些情况下移除了相关内容。这些变更可能会导致依赖特定软件版本或预装软件包的工作流中断。请查看完整变更列表,并在迁移开始前使用 Ubuntu 26 测试工作流。

ubuntu-latest 标签将从 Ubuntu 24.04 迁移至 Ubuntu 26.04。此次迁移将于 2026 年 10 月 19 日至 11 月 19 日期间逐步推出。在此期间,使用 ubuntu-latest 的工作流将自动迁移至 Ubuntu 26.04。

由于这会将工作流迁移到新的操作系统版本,依赖 Ubuntu 24.04 与 26.04 之间发生变化的工具、软件包或版本的构建可能会中断。为做好准备:

  • 请在迁移开始前,使用 ubuntu-26.04 测试工作流。
  • 如果尚未准备好迁移,请将工作流固定为 ubuntu-24.04,以继续使用当前镜像。

如需进一步了解可用镜像,请参阅 GitHub-hosted runners 文档。如需查看包含的软件列表或报告镜像问题,请访问 runner-images 仓库。

English / 原文

The Ubuntu 26.04 runner image for GitHub Actions is now out of public preview and fully supported for production workflows on both x64 and arm64. As part of this release, the ubuntu-latest label will migrate to Ubuntu 26.04, giving you the latest supported Ubuntu release by default.

To run your workflows on the new image, set runs-on: ubuntu-26.04 or runs-on: ubuntu-26.04-arm in your workflow file. Ubuntu 26.04 includes updated, and in some cases removed, tools and tool versions compared to earlier images. These changes can break workflows that depend on specific software versions or preinstalled packages. Review the full list of changes and test your workflows against Ubuntu 26 before the migration begins.

The ubuntu-latest label will migrate from Ubuntu 24.04 to Ubuntu 26.04. This migration will roll out gradually between October 19 and November 19, 2026. During this window, workflows that use ubuntu-latest will automatically move to Ubuntu 26.04.

Because this moves your workflows to a new operating system version, the migration may break builds that rely on tools, packages, or versions that changed between Ubuntu 24.04 and 26.04. To prepare:

  • Test your workflows against ubuntu-26.04 before the migration begins.
  • If you are not ready to move, pin your workflows to ubuntu-24.04 to stay on the current image.

To learn more about available images, see the GitHub-hosted runners documentation. To see the included software list or report issues with the image, head to the runner-images repository.