Optimize CI/CD pipeline with improved caching strategies #18
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.
Summary
This PR introduces improvements to the build and CI/CD pipeline by implementing better caching strategies and optimizing the Docker build process. These changes will reduce build times and improve resource utilization across both GitHub Actions workflows and Docker builds.
Changes
GitHub Actions Improvements
Swatinem/rust-cache: The workflows now use a specialized Rust caching action that provides more intelligent and efficient caching compared to the previous manual approachcache-on-failure: "true"to preserve cache even when builds fail, preventing unnecessary cache rebuildscache-targets: "false"to focus on dependency caching rather than build artifactsDocker Build Optimization
debian:bookwormtodebian:bookworm-slimfor a smaller final image sizeCode Formatting
src/interrupts.rsfor cargo fmt