Consolidate hashFiles() calls in the build.yml workflow#269
Open
mcdonnnj wants to merge 1 commit into
Open
Conversation
This will generate a single hash from all files listed.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR streamlines the GitHub Actions cache key used in .github/workflows/build.yml by consolidating multiple hashFiles() invocations into a single call that hashes all relevant dependency/config files together, reducing cache key length for easier inspection and interaction with tooling like gh cache.
Changes:
- Replace three separate
hashFiles()calls with a singlehashFiles(pattern1, pattern2, pattern3)call. - Shorten/simplify the resulting cache key while keeping it sensitive to the same set of input files.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
dav3r
approved these changes
May 4, 2026
jsf9k
approved these changes
May 4, 2026
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.
🗣 Description
This pull request updates the cache key we use in the
build.ymlworkflow to use a single call tohashFiles()with all files instead of individual calls per file.💭 Motivation and context
This generate a single derived hash from the files which will reduce the length of the cache key used. This is mostly just to ease interaction with the
gh cacheextension and when inspecting the log for a workflow run.🧪 Testing
Automated tests pass.
✅ Pre-approval checklist