Skip to content

[ci] update apt index before clang install#515

Merged
zhangxp1998 merged 1 commit into
littlekernel:masterfrom
zhangxp1998:fix/ci-apt-update-clang
Jun 18, 2026
Merged

[ci] update apt index before clang install#515
zhangxp1998 merged 1 commit into
littlekernel:masterfrom
zhangxp1998:fix/ci-apt-update-clang

Conversation

@zhangxp1998

Copy link
Copy Markdown
Contributor

Summary

  • run apt-get update before installing clang/lld in the Clang CI workflow
  • apply the same setup fix to the Rust workflow, which installs clang/lld the same way

Motivation

Several clang-20 jobs recently failed before reaching the build step because the runner's apt package index pointed at stale package versions that returned 404 from Ubuntu mirrors. Refreshing the package index before installing clang/lld makes this setup step less flaky on GitHub-hosted runners.

Test

  • git diff --check

Copilot AI review requested due to automatic review settings June 18, 2026 06:17

Copilot AI left a comment

Copy link
Copy Markdown

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 reduces CI flakiness on GitHub-hosted Ubuntu runners by refreshing the apt package index before installing versioned clang/lld in workflows that depend on Ubuntu’s apt repositories.

Changes:

  • Add sudo apt-get update before installing clang-${{ matrix.toolchain-ver }} and lld-${{ matrix.toolchain-ver }} in the Clang CI workflow.
  • Apply the same apt index refresh in the Rust CI workflow, which installs the same toolchain packages.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/workflows/github-ci-rust.yml Updates apt package index before installing clang/lld in the toolchain setup step.
.github/workflows/github-ci-clang.yml Updates apt package index before installing clang/lld in the toolchain setup step.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@zhangxp1998 zhangxp1998 force-pushed the fix/ci-apt-update-clang branch from 4a7148d to d40a99d Compare June 18, 2026 06:21
@zhangxp1998 zhangxp1998 merged commit 9287132 into littlekernel:master Jun 18, 2026
120 checks passed
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.

2 participants