Skip to content

CI: Enable caching of Rust toolchain and build artifacts for CI/CD performance#150

Open
hyperfinitism wants to merge 2 commits into
virtee:mainfrom
hyperfinitism:ci/use-setup-rust-toolchain
Open

CI: Enable caching of Rust toolchain and build artifacts for CI/CD performance#150
hyperfinitism wants to merge 2 commits into
virtee:mainfrom
hyperfinitism:ci/use-setup-rust-toolchain

Conversation

@hyperfinitism

@hyperfinitism hyperfinitism commented Mar 4, 2026

Copy link
Copy Markdown
Contributor

This PR switches CI workflows from dtolnay/rust-toolchain to actions-rust-lang/setup-rust-toolchain, which enables built-in caching (via Swatinem/rust-cache internally) for the Rust toolchain and Cargo build artifacts to significantly speed up CI/CD runs.

This PR bumps each actions/* action from v4 to its latest version to avoid dependencies on Node 20, which is nearing its end-of-life (Apr 30, 2026).

Fixes #148.

Changes

  • dtolnay/rust-toolchain@stableactions-rust-lang/setup-rust-toolchain@v1
  • actions/checkout: v4v6
  • actions/upload-artifact: v4v7
  • actions/download-artifact: v4v8
  • (Other change) Delete trailing spaces

Replace rust-toolchain with setup-rust-toolchain to enable caching of
the Rust toolchain and build artifacts. This will significantly reduce
execution time.

Signed-off-by: Takuma IMAMURA <209989118+hyperfinitism@users.noreply.github.com>
Bumps the following GitHub actions to the latest releases:

- actions/checkout from v4 to v6
- actions/upload-artifact from v4 to v7
- actions/download-artifact from v4 to v8

The current versions (v4) depend on Node.js 20 which will be End-of-Life
on Apr 30, 2026. The latest versions use Node.js 24 (Active LTS).

Signed-off-by: Takuma IMAMURA <209989118+hyperfinitism@users.noreply.github.com>

@DGonzalezVillal DGonzalezVillal left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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.

CI/CD performance: consider enabling Rust cache

4 participants