Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for dependency caching #2383

Merged
merged 24 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
1a7989f
Add `dependency-caching` input to Action
mbg Jul 22, 2024
1922a48
Add `dependencyCachingEnabled` to `Config`
mbg Jul 22, 2024
19e7c25
Add explicit dependency on `@actions/glob`
mbg Jul 22, 2024
51d90f4
Add caching utils
mbg Jul 22, 2024
2b7af49
Add bare-bones dependency caching functions
mbg Jul 22, 2024
f64038f
Store and restore dependency caches in `init` Action
mbg Jul 22, 2024
5e11d57
Add caching configuration for C#
mbg Jul 23, 2024
9d1353f
Add caching configuration for Go
mbg Jul 23, 2024
5afaeed
Ensure that we have files to calculate the hash for the cache key from
mbg Jul 23, 2024
f0bcca1
Add documentation for `CacheConfig`
mbg Jul 26, 2024
259cc5a
Rename `makeGlobber` parameter
mbg Jul 26, 2024
471ed9f
Move `isDefaultSetup` to `actions-util.ts` and change implementation
mbg Jul 26, 2024
5b057af
Store dependency caches in `analyze` Action
mbg Jul 26, 2024
f3714ae
Skip uploading empty caches
mbg Jul 26, 2024
1338dbc
Add env var alternative to `dependency-caching` input
mbg Sep 25, 2024
8f657e8
Add environment variable for custom dependency cache prefix
mbg Oct 7, 2024
c0b5869
Add message when no cache was found for a language
mbg Oct 7, 2024
7d69964
Fix import ordering
mbg Oct 7, 2024
668531e
Support Paket
mbg Oct 14, 2024
79faaf1
Add `CachingKind` enum to control whether to restore or store caches
mbg Oct 14, 2024
0cb7129
Disable dependency caching by default on hosted runners for now
mbg Oct 28, 2024
21e6a62
Use common `getTotalCacheSize` for TRAP caching
mbg Oct 29, 2024
ed74b24
Remove part about deprecated values in docs for `getCachingKind`
mbg Oct 29, 2024
bab8f1d
Document future cache size considerations
mbg Oct 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions init/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ inputs:
description: >-
Explicitly enable or disable TRAP caching rather than respecting the feature flag for it.
required: false
dependency-caching:
description: >-
Explicitly enable or disable caching of project build dependencies.
required: false
outputs:
codeql-path:
description: The path of the CodeQL binary used for analysis
Expand Down
5 changes: 5 additions & 0 deletions lib/actions-util.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/actions-util.js.map

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion lib/analyze-action.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/analyze-action.js.map

Large diffs are not rendered by default.

106 changes: 106 additions & 0 deletions lib/caching-utils.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/caching-utils.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions lib/config-utils.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/config-utils.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions lib/config-utils.test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/config-utils.test.js.map

Large diffs are not rendered by default.

Loading
Loading