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
There's an issue with the total expected cache size warning/error when using buildjet cache which is a fork from this repo. To avoid there being any discrepancies between the actual allowed cache size and the size mentioned within the error message, I moved the limit into it's own variable and added the limit variable into the error message.
This is the message that I see when using buildjets cache:
The actual limit is 4.99 GB. The message states 10GB is the limit.
However, if I switch the caching action to use:
runs-on: ubuntu-latest
along withuses: actions/cache@v4
then it works as expected. Example:Working:
Not working:
Motivation and Context
Should fix: BuildJet#2
How Has This Been Tested?
Tested this in my orgs pipeline yet as a fork from the buildjet cache modified with this change.
Screenshots (if appropriate):
Shown above in description.
Types of changes
Checklist: