Skip to content

Add cache step to CI workflow#332

Open
mattt wants to merge 2 commits intomainfrom
mattt/cache-step
Open

Add cache step to CI workflow#332
mattt wants to merge 2 commits intomainfrom
mattt/cache-step

Conversation

@mattt
Copy link
Collaborator

@mattt mattt commented Mar 9, 2026

Didn't notice until just now that we're not caching intermediate build output between CI runs. Especially since we brought in SwiftNIO / AsyncHTTPClient as a transitive dependency for Xet downloads, this adds an extra minute or two to each run.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds SwiftPM build artifact caching to the Linux CI job to reduce repeated dependency/build work between runs, which should cut down CI time as the dependency graph grows (e.g., via transitive SwiftNIO/AsyncHTTPClient).

Changes:

  • Add an actions/cache step that caches the SwiftPM .build directory on Linux.
  • Key the cache by OS and a hash of package manifest inputs, with a prefix fallback restore key.

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

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

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


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

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


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

@mattt mattt force-pushed the mattt/cache-step branch from 6763e43 to f41150f Compare March 9, 2026 12:22
Copy link
Member

@pcuenca pcuenca left a comment

Choose a reason for hiding this comment

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

These are in addition to the ones added in #334, right?

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.

3 participants