Commit Graph

221 Commits

Author SHA1 Message Date
Amin Yahyaabadi a062ce6962 feat: support passing arch from CLI to setupBin 2022-01-30 15:33:22 -08:00
Amin Yahyaabadi 0fe9b461ac fix: use ChocolateyInstall env variable 2022-01-30 14:40:42 -08:00
Amin Yahyaabadi a67e7babf2 fix: use colored errors for local usage 2022-01-29 15:18:48 -08:00
Amin Yahyaabadi 10770915e5 fix: print a warning if no tool was installed 2022-01-29 15:18:48 -08:00
Amin Yahyaabadi d67d7e0c03 fix: use powershell for val.length of more than 1024 2022-01-22 20:54:37 -08:00
Amin Yahyaabadi 946065a48d fix: fix setx script fallback on Windows 2022-01-22 20:25:15 -08:00
Amin Yahyaabadi d98deda888 fix: fix eslint warnings 2022-01-22 17:41:18 -08:00
Amin Yahyaabadi 2c63db7e3c fix: update apt repositories in the beginning 2022-01-19 16:05:13 -08:00
Amin Yahyaabadi de8de27990 fix: install apt utils and certificates 2022-01-19 16:00:12 -08:00
Amin Yahyaabadi f83c7d79ac fix: add untildify_user and use it everywhere 2022-01-19 11:58:10 -08:00
Amin Yahyaabadi 469230d988 fix: use the user profile to add system environment variables 2022-01-19 11:43:35 -08:00
Amin Yahyaabadi 3a91e6f67a fix: fix addSystemEnv on Linux/Mac 2022-01-19 11:31:11 -08:00
Amin Yahyaabadi e5f4cd37ed fix: install implicit linux dependencies 2022-01-19 11:15:21 -08:00
Amin Yahyaabadi c6a5745cec fix: support adding environment variables on non GitHub Action 2022-01-17 18:30:02 -08:00
Amin Yahyaabadi fe9414c998 fix: disable sourcing the profile in addPathSystem 2022-01-17 14:54:37 -08:00
Amin Yahyaabadi 8e542b0dc8 fix: use appendFileSync instead of echo >> 2022-01-17 14:36:44 -08:00
Amin Yahyaabadi f13a48fae9 fix: untildify the profile path 2022-01-17 14:31:50 -08:00
Amin Yahyaabadi c0e8c96665 fix: run GitHub specific code only on GitHub CI 2022-01-17 14:24:54 -08:00
Amin Yahyaabadi 3b3e893ce4 fix: trim sdkroot output 2021-12-11 17:21:44 -06:00
Amin Yahyaabadi 95c8ebb90c fix: quote in execaSudo 2021-12-07 13:37:01 -06:00
Amin Yahyaabadi 74bc447689 fix: add --fix-broken to apt 2021-12-07 07:15:42 -06:00
Amin Yahyaabadi fa01e81c02 feat: support kcov 2021-12-07 05:57:58 -06:00
Amin Yahyaabadi dd4a80b89b fix: add dk.archive.ubuntu.com/ubuntu/ xenia ppas for gcc 2021-12-07 02:53:22 -06:00
Amin Yahyaabadi 6b9b57b9a8 fix: coerce llvm version if not semver 2021-12-07 02:46:07 -06:00
Amin Yahyaabadi 1042fffd1a fix: unset Path, TMP, and TEMP before MSVC installations 2021-12-06 09:19:32 -06:00
Amin Yahyaabadi 7d0cc67ac7 Revert "fix: update execa"
This reverts commit 12fe81ac31.
2021-12-01 04:26:05 -06:00
Amin Yahyaabadi 12fe81ac31 fix: update execa 2021-12-01 04:21:51 -06:00
Amin Yahyaabadi 0b3d2fafa3 v0.3.0 2021-11-21 14:20:51 -06:00
Amin Yahyaabadi 96346084ca fix: fix finding bin file in the cache 2021-11-21 14:05:50 -06:00
Amin Yahyaabadi ec22e0200a fix: fix setupBin 2021-11-21 13:54:12 -06:00
Amin Yahyaabadi c6eb5ca89b feat: change the installation directory to ~/tool
BREAKING CHANGE
2021-11-21 12:53:27 -06:00
Amin Yahyaabadi 722630db75 fix: add addShellHere to fix sh finding ./file 2021-11-21 12:21:36 -06:00
Amin Yahyaabadi fca9be5e81 fix: fix the vcpkg shell extension 2021-11-21 11:33:28 -06:00
Amin Yahyaabadi 9b38d106c8 fix: make addPath sync 2021-09-19 03:49:42 -05:00
Amin Yahyaabadi 418fa80b65 fix: only cache if in ci 2021-09-18 11:27:15 -05:00
Amin Yahyaabadi d81b44b112 fix: try-catch adding path using system 2021-09-18 10:39:13 -05:00
Amin Yahyaabadi d749362c4e fix: use python 3.9.7 2021-09-18 09:16:07 -05:00
Amin Yahyaabadi e898202dcc fix: check if sudo is installed 2021-09-18 08:54:42 -05:00
Amin Yahyaabadi c9b478842d fix: fix execaSudo 2021-09-18 08:51:24 -05:00
Amin Yahyaabadi 51da3adc7b fix: add execaSudo 2021-09-18 08:43:36 -05:00
Amin Yahyaabadi a0e33e0466 fix: fix isCI 2021-09-18 08:35:26 -05:00
Amin Yahyaabadi bfd6260fca refactor: success and error functions 2021-09-18 08:21:22 -05:00
Amin Yahyaabadi 9bef371233 fix: use execa instead of cross-spawn and @action/exec 2021-09-18 08:13:23 -05:00
Amin Yahyaabadi 0dca6ef345 fix: await addPath 2021-09-18 07:30:16 -05:00
Amin Yahyaabadi a778f9bfce fix: add native fallback for addPath 2021-09-18 06:28:04 -05:00
Amin Yahyaabadi 882d0f7013 feat: catch the addPath failure 2021-09-17 21:17:21 -05:00
Amin Yahyaabadi 87beee7e7d fix: add RUNNER_TOOL_CACHE 2021-09-17 16:19:29 -05:00
Amin Yahyaabadi 3461b7cbce fix: use exec for apt 2021-09-17 15:19:58 -05:00
Amin Yahyaabadi b61c16aa45 Revert "fix: fix cross-spawn exit codes"
This reverts commit 1a81d4edde.
2021-09-17 15:19:32 -05:00
Amin Yahyaabadi 03dfa71def fix: add -y to apt 2021-09-17 15:13:41 -05:00
Amin Yahyaabadi 1a81d4edde fix: fix cross-spawn exit codes 2021-09-17 15:08:19 -05:00
Amin Yahyaabadi da284e010c fix: use md5 for hashing the installation path 2021-09-17 14:02:47 -05:00
Amin Yahyaabadi 21b816c605 fix: catch the failure in setupBin 2021-09-17 13:51:29 -05:00
Amin Yahyaabadi 5cffd3930a fix: use cross-spawn instead of @actions/exec
to support color and inputs
2021-09-17 13:44:24 -05:00
Amin Yahyaabadi 09a5e16c4f test: use cross-spawn in the tests 2021-09-17 05:28:57 -05:00
Amin Yahyaabadi abb5917b83 test: do not spawn OpenCppCoverage due to its non-zero exit codes 2021-09-17 05:06:14 -05:00
Amin Yahyaabadi 78ad81e393 fix: fix gcc on windows 2021-09-17 04:55:20 -05:00
Amin Yahyaabadi a8477cb234 test: escape path in the exec in the test 2021-09-17 04:49:13 -05:00
Amin Yahyaabadi bf456808b6 fix: use / instead of \\ on windows 2021-09-16 18:26:57 -05:00
Amin Yahyaabadi 48779980ad fix: fix apt version handling to fix gcc 2021-09-16 17:56:35 -05:00
Amin Yahyaabadi 6dade5cb0c fix: update repositories independent of add-apt-repository 2021-09-16 17:50:19 -05:00
Amin Yahyaabadi df6ee47b06 fix: trim the python output 2021-09-16 17:39:30 -05:00
Amin Yahyaabadi 3c2eaf1f4d test: test proces.arch 2021-09-16 17:36:31 -05:00
Amin Yahyaabadi cac52d79f7 fix: use exec from actions/exec instead of child_process
Also return undefined instead of void
2021-09-16 16:12:29 -05:00
Amin Yahyaabadi 1bafb63779 Revert "fix: use sudo for pip if available"
This reverts commit cd775009da.
2021-09-16 15:52:45 -05:00
Amin Yahyaabadi cd775009da fix: use sudo for pip if available 2021-09-16 15:33:30 -05:00
Amin Yahyaabadi 53b53fef98 fix: fix finding python path 2021-09-16 15:33:13 -05:00
Amin Yahyaabadi 8a1490eabe fix: use \n in the python command 2021-09-16 15:16:12 -05:00
Amin Yahyaabadi 5993d7b019 fix: use core.info instead of startGroup 2021-09-16 14:49:06 -05:00
Amin Yahyaabadi 5e61cbc438 fix: add the correct cache to the path 2021-09-16 14:40:29 -05:00
Amin Yahyaabadi 0705a52b46 test: simplify cmake test 2021-09-16 14:38:52 -05:00
Amin Yahyaabadi 1c9ab5ba6f fix: fix choco path 2021-09-16 14:03:49 -05:00
Amin Yahyaabadi e6a4d529fc fix: return the installInfo object from setupPipPack 2021-09-16 11:54:36 -05:00
Amin Yahyaabadi ecb7cdd120 fix: fix pip installation path for macos and windows 2021-09-16 11:49:09 -05:00
Amin Yahyaabadi bf63dd58d3 fix: return installation directory for pip packages 2021-09-16 11:14:08 -05:00
Amin Yahyaabadi 8e56d264af fix: return default installation directory for apt and brew 2021-09-16 10:58:22 -05:00
Amin Yahyaabadi dde8036194 feat: add which test to testBin 2021-09-16 10:07:14 -05:00
Amin Yahyaabadi ae4c6ebf2f fix: fix choco versions 2021-09-16 09:31:25 -05:00
Amin Yahyaabadi cf3dbb2b16 feat: add support for adding repositories to apt 2021-09-16 08:38:38 -05:00
Amin Yahyaabadi 8ab3e55ee8 feat: add sudo utils 2021-09-16 08:36:29 -05:00
Amin Yahyaabadi 9702fd9926 fix: fix for version === "" 2021-09-16 07:15:17 -05:00
Amin Yahyaabadi 269d96f070 fix: pass the default arguments to the functions 2021-09-16 07:09:01 -05:00
Amin Yahyaabadi 841f079886 fix: install brew synchronously 2021-09-16 04:28:33 -05:00
Amin Yahyaabadi eaec708616 fix: make brew synchronous 2021-09-16 04:20:30 -05:00
Amin Yahyaabadi edbc293b98 fix: use sudo if available on linux 2021-09-16 04:08:10 -05:00
Amin Yahyaabadi 7957d7f52a feat: add setupBrew 2021-09-16 03:26:53 -05:00
Amin Yahyaabadi 1cad859704 feat: add setupBrewPack 2021-09-16 03:21:04 -05:00
Amin Yahyaabadi 8555309081 fix: add -y to choco installations 2021-09-15 05:56:02 -05:00
Amin Yahyaabadi b302dc3e25 feat: add msvc installation 2021-09-15 05:25:02 -05:00
Amin Yahyaabadi 723f5c82ff fix: fix semver regex match 2021-09-15 04:02:43 -05:00
Amin Yahyaabadi 9e16dda2d6 perf: cache apt-get update 2021-09-15 04:02:43 -05:00
Amin Yahyaabadi 064da1045c perf: cache checking choco installation 2021-09-15 04:02:43 -05:00
Amin Yahyaabadi edd8e55e9a feat: install python3 if needed 2021-09-15 04:02:42 -05:00
Amin Yahyaabadi bfeb0cd211 feat: add function for checking the version of a binary 2021-09-15 03:35:19 -05:00
Amin Yahyaabadi e08ce49f07 chore: rename functions for clarification 2021-09-15 03:21:28 -05:00
Amin Yahyaabadi e522160611 feat: add setup choco 2021-09-15 03:20:11 -05:00
Amin Yahyaabadi cd0ee64e3e feat: add setup apt 2021-09-15 03:14:39 -05:00
Amin Yahyaabadi de191063e3 refactor: getSpecificVersionAndUrl 2021-09-15 02:42:12 -05:00
Amin Yahyaabadi fb4b68daca fix: increase test timeout 2021-09-15 02:37:42 -05:00
Amin Yahyaabadi db46f34a80 refactor: getSpecificVersions and getVersions 2021-09-15 02:37:34 -05:00
Amin Yahyaabadi 8c32267eea refactor: add extract module to the utils
Update extract.ts
2021-09-15 02:37:33 -05:00
Amin Yahyaabadi 3defe39318 fix: add .local/bin to path inside setupPip 2021-09-14 14:52:17 -05:00
Amin Yahyaabadi 1ffc145596 fix: use pip3 if available 2021-09-14 12:40:42 -05:00
Amin Yahyaabadi 0c07dec72e feat: add conan installation 2021-09-14 12:06:20 -05:00
Amin Yahyaabadi 4927f3a272 chore: rename setupPackage to setupBin 2021-09-14 11:41:13 -05:00
Amin Yahyaabadi 04dd26cc88 test: add tests for finding the tool in the cache 2021-09-14 11:09:48 -05:00
Amin Yahyaabadi 096cd4150c fix: fix llvm extraction on windows 2021-09-14 10:00:30 -05:00
Amin Yahyaabadi 63126aeffa fix: return the installDir and binDir 2021-09-14 09:13:39 -05:00
Amin Yahyaabadi 4824306aab fix: spawn the bin in the tests 2021-09-14 09:04:39 -05:00
Amin Yahyaabadi 9bf59efb6c fix: use setup bin for llvm installation 2021-09-14 08:50:26 -05:00
Amin Yahyaabadi 64f3cf193b fix: update setupBin to return the installation directory
and support async getPackageInfo
2021-09-14 08:47:16 -05:00
Amin Yahyaabadi d4d00ac16b fix: only cache if RUNNER_TOOL_CACHE is defined 2021-09-14 08:02:57 -05:00
Amin Yahyaabadi 46cc30329b fix: support llvm 8 and 7 for windows 2021-09-14 07:34:14 -05:00
Amin Yahyaabadi a5ae2b4863 fix: make install directory configurable 2021-09-14 07:07:59 -05:00
Amin Yahyaabadi 40336c3c67 fix: set runner temp for local runs 2021-09-14 06:38:58 -05:00
Amin Yahyaabadi d3abd11c4f fix: install everything into ~/setup_cpp 2021-09-14 05:11:42 -05:00
Amin Yahyaabadi b957bc4ab8 fix: support downloading raw binaries 2021-09-14 04:27:55 -05:00
Amin Yahyaabadi e77708aa48 fix: use setup bin for ninja 2021-09-14 04:26:33 -05:00
Amin Yahyaabadi 1b87c26a89 fix: fix setup bin by using folderName 2021-09-14 04:23:38 -05:00
Amin Yahyaabadi ae8703687a fix: add setupBin function and use it inside setupCmake 2021-09-14 04:23:12 -05:00
Amin Yahyaabadi 0a3aa6cc9c test: refactor setup and cleanup helpers 2021-09-14 03:26:53 -05:00