setup-cpp/src
Amin Yahyaabadi 96396ce7c5 perf: add dynamically loaded cache-dependencies for actions python
This reduces the main bundle size by ⚠️  1.28 MB minified! This bundle is loaded only when caching is enabled.

`setup-python` is used in [`setup-cpp`](https://github.com/aminya/setup-cpp) as a library. This optimization reduces the bundle size for that package as well. The build system of `setup-python` uses `ncc`, which doesn't immediately benefit from this change, but setup-cpp uses `Parcel`, which shows this huge improvement.

The reason for this huge reduction is that caching the dependencies uses the `@actions/cache` package, which is an extremely large package with big dependencies. The bundle size before this separation shows this:
![Screenshot_20230907_230625](https://github.com/actions/setup-python/assets/16418197/ec1baf34-85c3-459d-b8cf-894899959b2c)
2023-09-07 23:21:19 -07:00
..
__tests__ test: fix the gcovr version tests 2023-09-04 19:25:56 -07:00
bazel fix: update dependencies 2023-07-24 13:20:13 -07:00
brew test: mark the skipped tests in jest 2023-09-04 19:27:23 -07:00
ccache feat: support installing multiple dnf packages 2023-07-16 03:12:24 -07:00
chocolatey test: mark the skipped tests in jest 2023-09-04 19:27:23 -07:00
cmake fix: replace npmcli/ci-detect with ci-info 2023-04-22 02:31:04 -07:00
conan fix: fix library installation via pip + fix conan 2023-09-01 03:28:05 -07:00
cppcheck test: disable cppcheck test on Windows 2023-08-22 11:45:19 -07:00
doxygen fix: update dependencies 2023-07-24 13:20:13 -07:00
gcc fix: update cmake, gcovr, kcov, meson, task, doxygen, gcc 2023-09-03 17:42:40 -07:00
gcovr feat: add Gcov environment variables 2022-11-08 17:01:31 -08:00
graphviz fix: update dependencies 2023-07-24 13:20:13 -07:00
kcov test: remove some long-running duplicate tests for kcov/llvm 2023-07-24 15:48:23 -07:00
llvm fix: ensure constant initialization order 2023-08-21 21:41:17 -07:00
macos-sdk test: mark the skipped tests in jest 2023-09-04 19:27:23 -07:00
make feat: support installing multiple dnf packages 2023-07-16 03:12:24 -07:00
meson chore: break the code for handling versions 2022-11-02 20:01:42 -07:00
msvc test: mark the skipped tests in jest 2023-09-04 19:27:23 -07:00
nala test: remove nala after testing it 2023-09-05 12:14:09 -07:00
ninja fix: replace npmcli/ci-detect with ci-info 2023-04-22 02:31:04 -07:00
opencppcoverage test: mark the skipped tests in jest 2023-09-04 19:27:23 -07:00
powershell feat: support installing multiple dnf packages 2023-07-16 03:12:24 -07:00
python perf: add dynamically loaded cache-dependencies for actions python 2023-09-07 23:21:19 -07:00
sccache feat: add sccache support 2022-11-20 19:14:20 -08:00
sevenzip feat: support installing multiple dnf packages 2023-07-16 03:12:24 -07:00
task fix: replace npmcli/ci-detect with ci-info 2023-04-22 02:31:04 -07:00
types Merge branch 'master' into feature/cross-mingw 2023-04-02 01:32:43 +02:00
utils fix: async grantUserWriteAccess 2023-09-07 13:47:30 -07:00
vcpkg fix: async grantUserWriteAccess 2023-09-07 13:47:30 -07:00
vcvarsall fix: update dependencies 2023-07-24 13:20:13 -07:00
versions fix: update cmake, gcovr, kcov, meson, task, doxygen, gcc 2023-09-03 17:42:40 -07:00
check-updates.ts fix: remove json assertion 2023-05-24 23:47:45 -07:00
cli-options.ts fix: ensure constant initialization order 2023-08-21 21:41:17 -07:00
compilers.ts fix: update dependencies 2023-07-24 13:20:13 -07:00
installTool.ts fix: fix the timeout conversion and add a custom message 2023-08-21 21:58:10 -07:00
main.ts fix: ensure constant initialization order 2023-08-21 21:41:17 -07:00
tool.ts fix: ensure constant initialization order 2023-08-21 21:41:17 -07:00