Commit Graph

192 Commits

Author SHA1 Message Date
Amin Yahyaabadi 4f69ae3519 feat: use grantUserWriteAccess from admina and await it 2023-09-11 11:05:16 -07:00
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
Amin Yahyaabadi 5126444593 fix: optimize the build with terser-config-atomic 2023-09-07 13:46:37 -07:00
Amin Yahyaabadi 662daca0bf fix: remove unused dependencies + list bundled ones [skip test] 2023-08-31 23:01:58 -07:00
Amin Yahyaabadi d93dc2b536 feat: add timeout for installation of the tools 2023-08-21 20:11:21 -07:00
Amin Yahyaabadi 7449a7e89e fix: update dependencies 2023-08-01 14:06:23 -07:00
Amin Yahyaabadi 0b79280662 test: use swc as the jest transformer 2023-07-24 13:20:39 -07:00
Amin Yahyaabadi f0d23edbf1 fix: update dependencies 2023-07-24 13:20:13 -07:00
Amin Yahyaabadi b2cf91c9df fix: use node 20 instead of node 18 2023-07-15 15:41:58 -07:00
Amin Yahyaabadi f6ebfc1d77 fix: memoize addPythonBaseExecPrefix 2023-06-28 15:22:03 -07:00
Amin Yahyaabadi 49b6a080cc chore: update dependencies 2023-06-27 17:09:14 -07:00
Amin Yahyaabadi b736d88166 chore: v0.28.1 [skip test] 2023-05-26 13:08:18 -07:00
Amin Yahyaabadi 77b7ec30b7 fix: override whatwg-url to be the latest version 2023-05-26 12:42:10 -07:00
Amin Yahyaabadi 297213111d fix: remove the unused update-notifier 2023-05-26 12:06:06 -07:00
Amin Yahyaabadi cb8940d945 fix: update parcel 2023-05-26 12:00:04 -07:00
Amin Yahyaabadi 5c3b317006 fix: use simple-update-notifier instead of update-notifier 2023-05-24 22:07:48 -07:00
Amin Yahyaabadi f5342df15b feat: check if update-notifier is installed before using it 2023-05-24 22:06:37 -07:00
Amin Yahyaabadi 3797303356 fix: do not use fs/promises 2023-05-24 22:06:24 -07:00
Amin Yahyaabadi d60cc6ac6f fix: update dependencies 2023-05-24 16:45:05 -07:00
Amin Yahyaabadi 11b44434f5 fix: fix all the linting errors 2023-05-24 14:57:08 -07:00
Amin Yahyaabadi 00c09d28e6 fix: update path-exists 2023-04-23 01:09:38 -07:00
Amin Yahyaabadi f785f1ada7 fix: remove pnpm overrides 2023-04-23 01:06:16 -07:00
Amin Yahyaabadi ea04bfe6af fix: replace npmcli/ci-detect with ci-info 2023-04-22 02:31:04 -07:00
Amin Yahyaabadi 54a546118a fix: remove lru_cache override 2023-04-22 02:29:32 -07:00
Amin Yahyaabadi 8f35efa1fd feat: support LLVM 16 2023-04-21 14:19:59 -07:00
Amin Yahyaabadi 7b993ab70d fix: update setup-python and other deps 2023-04-21 11:38:35 -07:00
Amin Yahyaabadi 7c782cd66a fix: update dependencies 2023-04-14 01:15:14 -07:00
Amin Yahyaabadi 42fe442e94 fix: update escape-path-with-spaces 2023-03-09 13:36:02 -08:00
Amin Yahyaabadi f15b179c6a fix: update ci-detect package 2023-03-09 13:33:42 -08:00
Amin Yahyaabadi 3ada54b0db fix: update dependencies 2023-03-09 13:31:36 -08:00
Amin Yahyaabadi f633d98181 fix: update dependencies 2023-01-22 14:50:58 -08:00
Amin Yahyaabadi d452ddcd4d fix: move all dependencies to the devDependencies 2023-01-18 01:26:45 -08:00
Amin Yahyaabadi 4e183b6107 fix: fix bug in the Windows local PATH variable name 2023-01-15 01:48:12 -08:00
Amin Yahyaabadi f1f2460b85 fix: update dependencies 2023-01-15 01:37:02 -08:00
Amin Yahyaabadi 84ecfb4b29 fix: retry tool download process in case of errors 2022-12-21 13:46:00 -08:00
Amin Yahyaabadi 1cfa046fa8 fix: update dependencies 2022-12-14 14:16:14 -08:00
Amin Yahyaabadi 5505d67258 fix: escape regex of the name-version apt package 2022-11-22 21:51:51 -08:00
Amin Yahyaabadi eea16aa8c7 fix: down-grade path-exists to v4.0.0 due to node:fs usage 2022-11-22 20:59:40 -08:00
Amin Yahyaabadi ebd90dd38d perf: parallelized checking of the file existence 2022-11-22 20:51:18 -08:00
Amin Yahyaabadi 70c228ecc9 fix: quote the environment variables before adding 2022-11-20 22:45:45 -08:00
Amin Yahyaabadi dc44307b96 chore: update dependencies 2022-11-20 16:12:07 -08:00
Amin Yahyaabadi bcb2f0e470 fix: update dev-dependencies 2022-11-08 21:49:43 -08:00
Amin Yahyaabadi b5660f6bd7 chore: update dev-dependencies 2022-10-29 01:42:05 -07:00
Amin Yahyaabadi 2785bdd10b chore: remove now unnecessary loose-ts-check 2022-10-19 22:05:45 -07:00
Amin Yahyaabadi 99bbdbe446 fix: use typescript and execa for pack-exe 2022-10-19 20:46:24 -07:00
Amin Yahyaabadi 9d1119edc9 fix: update setup-python 2022-10-19 14:37:02 -07:00
Amin Yahyaabadi 24c3d1da4d fix: update dependencies 2022-09-18 20:20:54 -07:00
Amin Yahyaabadi 6ed018c894 fix: update dependencies (patha/admina, etc) 2022-08-27 00:29:31 -07:00
Amin Yahyaabadi 0daa34d443 fix: update dependencies 2022-08-26 03:34:54 -07:00
Amin Yahyaabadi 357e710629 feat: use admina instead of root-tools
https://github.com/aminya/admina
2022-08-26 03:09:19 -07:00
Amin Yahyaabadi 8a4811f507 fix: alias patha to the node bundle 2022-08-21 21:01:50 -07:00
Amin Yahyaabadi 338c5727b5 fix: update patha 2022-08-20 23:01:20 -07:00
Amin Yahyaabadi 3b6093bb8a fix: remove extension-tools and path in favor of patha 2022-08-20 15:38:51 -07:00
Amin Yahyaabadi c3e42a1263 fix: update dependencies 2022-08-18 14:10:06 -07:00
Amin Yahyaabadi 647dc69eaf fix: use is-url-online instead of get-works
https://github.com/spa5k/is-url-online/pull/40
2022-08-09 00:13:35 -07:00
Amin Yahyaabadi 79eae5db23 feat: add ci-log package 2022-08-08 01:22:28 -07:00
Amin Yahyaabadi 4d3cf92471 feat: add get-works package to validate the URLs 2022-08-08 00:36:24 -07:00
Amin Yahyaabadi 91ab4d1d32 fix: use is-link-working fork 2022-08-08 00:14:43 -07:00
Amin Yahyaabadi 0bbdeadfbd feat: use is-link-working to test the urls 2022-08-07 23:46:11 -07:00
Amin Yahyaabadi edc37d25c6 Revert "fix: use is-url-online to validate the download links"
This reverts commit 232af3c141.
2022-08-07 21:42:31 -07:00
Amin Yahyaabadi 232af3c141 fix: use is-url-online to validate the download links 2022-08-07 21:32:57 -07:00
Amin Yahyaabadi b38bf66f56 feat: add user-access package 2022-08-07 21:03:16 -07:00
Amin Yahyaabadi b4a83891fb feat: add untildify-user package 2022-08-07 20:04:59 -07:00
Amin Yahyaabadi a0ead740f7 fix: fix the root-tools folder name 2022-08-07 19:27:05 -07:00
Amin Yahyaabadi 6dd9d766bb fix: add types for escape-path-with-spaces
Use the types from https://github.com/jy95/escape-path-with-spaces/pull/14
2022-08-07 19:23:55 -07:00
Amin Yahyaabadi 3d08c16e03 fix: fix github-actions detection
Use the types from https://github.com/npm/ci-detect/pull/31
2022-08-07 19:13:40 -07:00
Amin Yahyaabadi 88c2d1ac03 fix: use ci-detect instead of isCI 2022-08-07 18:48:41 -07:00
Amin Yahyaabadi c5a2f11e38 fix: use extension-tools in setup-cpp 2022-08-07 18:36:04 -07:00
Amin Yahyaabadi 758bb59065 docs: automatically create the readme for the packages 2022-08-07 18:18:26 -07:00
Amin Yahyaabadi b77e674a50 fix: rename sudo-tools to root-tools 2022-08-07 17:38:34 -07:00
Amin Yahyaabadi 299694053d fix: use sudo-tools in setup-cpp 2022-08-07 17:24:44 -07:00
Amin Yahyaabadi fe2db9dd25 feat: add sudo-tools package 2022-08-07 17:18:49 -07:00
Amin Yahyaabadi 4c866cd807 fix: use exec-powershell in setup-cpp 2022-08-07 17:05:55 -07:00
Amin Yahyaabadi 46635fc18e feat: add exec-powershell package 2022-08-07 16:59:24 -07:00
Amin Yahyaabadi 4cb3b55b11 chore: update dependencies 2022-08-02 12:57:22 -07:00
Amin Yahyaabadi bd02e717ae fix: update setup-python 2022-07-16 18:15:08 -07:00
Amin Yahyaabadi 51dd00702f chore: update devDependencies 2022-07-16 18:12:17 -07:00
Amin Yahyaabadi ed9b316d01 fix: update setup-python 2022-07-05 20:56:51 -07:00
abeimler aecb4b3e29 feat: add pacman support (#31)
* add `setupPacmanPack`
* add arch linux docker image
* add container tests
2022-06-29 18:06:35 +02:00
Amin Yahyaabadi e11034e0a8 chore: update devDependencies 2022-06-25 17:30:17 -07:00
Amin Yahyaabadi 5692a92fdb fix: update setup-python 2022-06-25 17:16:32 -07:00
Amin Yahyaabadi 69799de0d9 fix: update dependencies 2022-06-17 14:00:54 -07:00
Amin Yahyaabadi 04ce365dce chore: update eslint-config-atomic 2022-06-09 21:10:48 -07:00
Amin Yahyaabadi 6d3a8dedbe fix: update dependencies 2022-06-09 12:44:46 -07:00
Amin Yahyaabadi 4db14f3ce6 chore: update devDependencies 2022-05-25 16:12:25 -07:00
Amin Yahyaabadi af7a395e60 fix: update dependencies 2022-05-20 18:32:41 -07:00
Amin Yahyaabadi 4109838bca fix: use escape-path-with-spaces to fix new windows paths 2022-05-11 17:13:27 -07:00
Amin Yahyaabadi d8593e1dfc fix: do not set CPATH for clang on windows 2022-05-11 14:51:51 -07:00
Amin Yahyaabadi 9504707635 fix: search for the doxygen directory in activate 2022-05-09 19:58:08 -07:00
Amin Yahyaabadi cd21dd244f fix: extract zip files using 7z on windows
`extractZip` from @actions uses the pre-installed PowerShell
This doesn't work properly with old PowerShell versions
2022-05-09 16:26:08 -07:00
Amin Yahyaabadi 6251144095 fix: get ubuntu version inside the main file 2022-05-05 17:11:42 -07:00
Amin Yahyaabadi 28c08c8f96 fix: update dependencies 2022-05-03 19:40:42 -07:00
Amin Yahyaabadi 233a820a34 fix: down-grade make-synchronous 2022-05-02 23:36:03 -07:00
Amin Yahyaabadi 05d55cbaa6 fix: select the default llvm version based on ubuntu version 2022-05-02 23:32:01 -07:00
Amin Yahyaabadi fe36759e27 test: use loose-ts-check to ignore certain ts errors 2022-04-24 16:56:25 -07:00
Amin Yahyaabadi c5296bc8b0 fix: fix numerous locale loading 2022-04-18 06:16:11 -07:00
Amin Yahyaabadi 3b060efc8e fix: update lru-cache to 7.8.1 2022-04-18 05:30:53 -07:00
Amin Yahyaabadi e7a90d7c46 fix: fix time-delta locale loading 2022-04-18 05:27:28 -07:00
Amin Yahyaabadi 4484aa3ba6 fix: override lru-cache to the latest version 2022-04-18 05:16:28 -07:00
Amin Yahyaabadi 20592b193c fix: use time-delta fork to format time 2022-04-18 05:07:02 -07:00