Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
chore(ci): optimize caching, enable incremental builds, and fix release workflow
Description
This PR introduces a suite of CI/CD optimizations designed to reduce path latency, improve build reliability, and fix the multi-crate release process. It enables cross-job cache sharing, incremental compilation support, and refactors the release workflow to handle independent crate versioning.
Changes
1. CI Caching & Performance
.github/actions/rust-ci-setup/action.yml: Addedshared-key: "sof-shared-cache"torust-cache. This allows PRs and branches to benefit from themainbranch cache, significantly reducing initial compilation times.Makefile.toml: Removed thecleandependency fromtasks.buildandtasks.build-prod. This preventscargofrom wiping thetargetdirectory on every run, enabling incremental compilation across the workspace.2. Release Workflow Fixes (
release-crates.yml)sofor justsof-tx) if their versions haven't both been bumped.sof-txto the release pipeline. Previously, only the coresofcrate was being published.softo ensure it is indexed by crates.io before thesof-tx(SDK) attempt begins.mainbranch and passes the fullcargo make ciquality gate before any publication occurs.Motivation
The current CI infrastructure suffers from high latency due to "clean room" builds on every run. Additionally, the release process was incomplete, failing to publish the SDK and requiring manual intervention for mismatched crate versions. These changes automate the release scaling and optimize the developer feedback loop.
Scope and impact
Testing
Makefile.tomlincremental behavior locally.Related docs/issues