Commit Graph

225 Commits

Author SHA1 Message Date
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 520073832d fix: use gcc 11 on windows 2021-09-18 09:01:36 -05:00
Amin Yahyaabadi 3dbece7c6d fix: fix llvm version 2021-09-18 09:01:26 -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 15b1b24116 fix: do not use version for system python 2021-09-18 08:35:41 -05:00
Amin Yahyaabadi c1a994e5bd fix: fix matchersPath 2021-09-18 08:35:26 -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 a70ed6421c fix: report the error reason 2021-09-18 08:09:08 -05:00
Amin Yahyaabadi d7f2e680b4 fix: use system python installation on non-ci 2021-09-18 07:50:31 -05:00
Amin Yahyaabadi 7e5fac5146 perf: install the compiler after installing the tools 2021-09-18 07:44:12 -05:00
Amin Yahyaabadi ec62f654e0 fix: change the tool installation order 2021-09-18 07:41:02 -05:00
Amin Yahyaabadi d941917c7a fix: add fallback for python installation 2021-09-18 07:39:59 -05:00
Amin Yahyaabadi 0dca6ef345 fix: await addPath 2021-09-18 07:30:16 -05:00
Amin Yahyaabadi a4f327ad7e fix: enable adding paths using commands outside of the ci
enable ACTIONS_ALLOW_UNSECURE_COMMANDS inside docker build
2021-09-18 07:24:04 -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 1a1befa1c9 fix: add colors to cli 2021-09-17 15:00:26 -05:00
Amin Yahyaabadi da284e010c fix: use md5 for hashing the installation path 2021-09-17 14:02:47 -05:00
Amin Yahyaabadi 801ebf86b8 fix: untildify the installation path 2021-09-17 13:54:30 -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 8a23537c88 fix: rename the executable 2021-09-17 13:19:10 -05:00
Amin Yahyaabadi 3ea0053fe7 fix: lazy load the external actions 2021-09-17 13:12:48 -05:00
Amin Yahyaabadi d028e18862 feat: add --help for the cli 2021-09-17 13:09:00 -05:00
Amin Yahyaabadi c654c9880c feat: support using setup-cpp from CLI 2021-09-17 12:51:59 -05:00
Amin Yahyaabadi 736836f507 chore: improve the types for setups and tools 2021-09-17 12:12:33 -05:00
Amin Yahyaabadi e9b7d582e2 feat: report the status of the installation in the end 2021-09-17 07:43:01 -05:00
Amin Yahyaabadi 5e6cf5d519 fix: catch msvc installation bugs 2021-09-17 06:35:55 -05:00
Amin Yahyaabadi ed2713efc5 fix: quote the arguments 2021-09-17 06:04:38 -05:00
Amin Yahyaabadi 3f0939b85c fix: use --add to add msvc workloads
https://github.com/jberezanski/ChocolateyPackages/blob/master/chocolatey-visualstudio.extension/EXAMPLES.md#add-the-data-workload-to-all-installed-vs-2017-communityprofessionalenterprise-instances-downloading-needed-files-from-the-internet-only-required-components-webdeploy-and-the-visualstudiodata-component-will-be-added
2021-09-17 05:53:39 -05:00
Amin Yahyaabadi 24f8038744 fix: fix the toolset versions for vs2017 and vs2019
https://github.com/jberezanski/ChocolateyPackages/issues/117#issuecomment-921071306
2021-09-17 05:39:05 -05:00
Amin Yahyaabadi e9a591d9d4 fix: gcc path on windows 2021-09-17 05:28:57 -05:00
Amin Yahyaabadi 09a5e16c4f test: use cross-spawn in the tests 2021-09-17 05:28:57 -05:00
Amin Yahyaabadi 00f3a11471 perf: install graphviz after doxygen 2021-09-17 05:17:21 -05:00
Amin Yahyaabadi 998539ef66 fix: fix choco path when already installed 2021-09-17 05:15:52 -05:00
Amin Yahyaabadi 6333bf6bfa test: fix OpenCppCoverage path test 2021-09-17 05:13:37 -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 ca064b68e0 test: increase timeout of the tests 2021-09-17 04:50:12 -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 24734937d9 fix: use gcc 10 on windows 2021-09-16 18:21:11 -05:00
Amin Yahyaabadi 7c06eab367 test: fix g++ test 2021-09-16 18:15:25 -05:00
Amin Yahyaabadi d452c39ca0 fix: fix brew path 2021-09-16 18:13:44 -05:00
Amin Yahyaabadi b964951e50 fix: coerce semver before taking the major 2021-09-16 18:02:18 -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 6925e1f02c fix: fix choco path 2021-09-16 17:44:13 -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 7492e96c57 fix: use gcc 11 instead of 11.2.0
brew fails with 11.2.0

Update gcc.test.ts
2021-09-16 17:36:18 -05:00
Amin Yahyaabadi 6ef4a34ada fix: add message for gcc-multilib 2021-09-16 17:28:23 -05:00
Amin Yahyaabadi 2c79ba1c6a fix: fix else gcc multilib 2021-09-16 17:00:14 -05:00
Amin Yahyaabadi f5bfb821d1 fix: set the environment variables for gcc 2021-09-16 16:54:18 -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 a9e63280c3 fix: check if mingw paths exists 2021-09-16 15:13:55 -05:00
Amin Yahyaabadi 28f7f1fb27 fix: fix binDir for choco 2021-09-16 15:08:54 -05:00
Amin Yahyaabadi a6648a2296 fix: fix brew path 2021-09-16 14:54:04 -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 b492a11246 fix: opencppcoverage path on windows 2021-09-16 14:03:49 -05:00
Amin Yahyaabadi c77dfe5251 fix: fix gcc path on windows 2021-09-16 14:03:49 -05:00
Amin Yahyaabadi 7d6d5df459 fix: fix doxygen path on windows 2021-09-16 14:03:49 -05:00
Amin Yahyaabadi 3284f1f1f9 fix: fix cppcheck path on windows 2021-09-16 14:03:49 -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 596c9438b5 test: use testBin in all the tests 2021-09-16 10:17:25 -05:00
Amin Yahyaabadi dde8036194 feat: add which test to testBin 2021-09-16 10:07:14 -05:00
Amin Yahyaabadi dc5ab1bf50 test: fix gcc test 2021-09-16 09:56:49 -05:00
Amin Yahyaabadi ae4c6ebf2f fix: fix choco versions 2021-09-16 09:31:25 -05:00
Amin Yahyaabadi c44a193e6a test: skip the msvc test for now 2021-09-16 09:21:45 -05:00
Amin Yahyaabadi c61f0e5307 fix: add cppcheck, doxygen, and mingw to PATH on windows 2021-09-16 09:19:56 -05:00
Amin Yahyaabadi 39993729df feat: support gcc/mingw 2021-09-16 09:03:54 -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 7f9c5687d2 fix: add default version for conan [skip ci] 2021-09-16 07:13:30 -05:00
Amin Yahyaabadi 269d96f070 fix: pass the default arguments to the functions 2021-09-16 07:09:01 -05:00
Amin Yahyaabadi 511a2fbbce feat: use a similar interface for installing all the packages 2021-09-16 06:58:41 -05:00
Amin Yahyaabadi a970eb0e44 feat: add default version registry 2021-09-16 06:36:35 -05:00
Amin Yahyaabadi b55bf22468 feat: add default version for msvc 2021-09-16 06:17:38 -05:00