Commit Graph

93 Commits

Author SHA1 Message Date
Kefu Chai 3d4cc40549 fix: use higher priority when installing llvm alternatives
before this change, gcc and g++ are installed using `updateAptAlternatives()`
with the same priority of 40 when they are installed along with
ld and libstdc++ as the dependencies of clang and llvm. but both
gcc and clang are installed using the same priority of 40 on ubuntu,
and the same applies to g++ and clang++. this renders it impossible
to use the default compilers of cc and cxx when clang/llvm is installed
using setup-cpp on an ubuntu host, as gcc is always prefered over
clang by the update-alternatives, as their priorities are identical.

in this change, the "priority" parameter is added to the setupGcc(),
so that we can specify a different priority when installing llvm.
strictly speaking, this is not necessary. as we can just use a higher
priority when calling updateAptAlternatives() in llvm/llvm.ts. but by
making it more explicit, we can ensure that we always prefer llvm over
gcc when installing llvm.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2024-01-22 14:25:47 +08:00
Amin Yahyaabadi 9303e93d38 fix: update cmake, gcovr, kcov, meson, task, doxygen, gcc 2023-09-03 17:42:40 -07:00
Amin Yahyaabadi f0d23edbf1 fix: update dependencies 2023-07-24 13:20:13 -07:00
Amin Yahyaabadi 7ccf39eac3 chore: fix linting errors 2023-07-20 02:44:13 -07:00
abeimler fb48106188 fix: mingw version 2023-07-20 00:26:55 +02:00
abeimler a884ad83aa Merge branch 'master' of https://github.com/abeimler/setup-cpp into feature/cross-mingw 2023-07-19 23:31:19 +02:00
Amin Yahyaabadi 41b2cf629a feat: support installing multiple dnf packages 2023-07-16 03:12:24 -07:00
Amin Yahyaabadi 11b44434f5 fix: fix all the linting errors 2023-05-24 14:57:08 -07:00
Amin Yahyaabadi 36a5b861ce feat: fallback to version-less package on arch if not found 2023-05-24 14:12:42 -07:00
Amin Yahyaabadi b31d8056a6 feat: support Mingw 13 2023-05-23 21:10:03 -07:00
Amin Yahyaabadi 00c09d28e6 fix: update path-exists 2023-04-23 01:09:38 -07:00
Amin Yahyaabadi 7052a18b1c Merge branch 'master' into esm 2023-04-23 01:03:19 -07:00
Amin Yahyaabadi ea04bfe6af fix: replace npmcli/ci-detect with ci-info 2023-04-22 02:31:04 -07:00
Amin Yahyaabadi d713a6703d fix: update execa 2023-04-22 02:19:33 -07:00
Amin Yahyaabadi 477360fbee fix: rename the executable to `setup-cpp.js`
BREAKING CHANGE the executable is now `setup-cpp.js`
2023-01-17 21:40:21 -08:00
abeimler 43fd6604a1 feat: add mingw cross compiler
* add docker mingw tests
* add node16 test
2022-12-29 22:00:49 +01:00
Amin Yahyaabadi 5528c08f49 fix: parallelize apt update alternatives 2022-11-22 22:11:47 -08:00
Amin Yahyaabadi dac72316df feat: parallelize the apt package installation chunks 2022-11-22 21:33:06 -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 66a38eb0fb fix: fix getting the brew path on linux 2022-11-20 21:26:31 -08:00
Amin Yahyaabadi fd436d2ed1 test: pass the ubuntu version in gcc tests 2022-11-20 17:51:40 -08:00
Amin Yahyaabadi 8481486746 feat: add mingw 12.2 2022-11-20 16:25:37 -08:00
Amin Yahyaabadi b9c2f3b391 chore: break the code for handling versions 2022-11-02 20:01:42 -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 793704eefd fix: update mingw 12 msvcrt
https://github.com/brechtsanders/winlibs_mingw/releases/tag/12.1.0-14.0.6-10.0.0-msvcrt-r3
2022-08-08 11:50:49 -07:00
Amin Yahyaabadi 79eae5db23 feat: add ci-log package 2022-08-08 01:22:28 -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 c8cec57d18 fix: handle the promises in setupAptPack 2022-07-27 19:07:30 -07:00
Amin Yahyaabadi 834fea83ec fix: fix llvm/gcc installation on dnf 2022-07-10 18:57:45 -07:00
Amin Yahyaabadi 1103890904 fix: check isUbuntu before using apt - fixes pip packages 2022-07-10 17:39:21 -07:00
Amin Yahyaabadi e8d2cb09a2 feat: support installing system packages using dnf package manager 2022-07-10 16:34:56 -07:00
Amin Yahyaabadi 45e4fd60f0 chore: rename isci to isCI 2022-07-10 16:11:32 -07:00
Amin Yahyaabadi cefca0b72e fix: update the alternatives only on ubuntu 2022-06-29 20:52:25 -07:00
Amin Yahyaabadi 7caf0ddff8 feat: add the cached isArch function 2022-06-29 19:06:33 -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 dc967fb60a fix: update the mingw 12 release 2022-06-09 12:02:41 -07:00
Amin Yahyaabadi 5524077a0f fix: add cmath to the gcc and llvm tests 2022-05-20 18:15:50 -07:00
Amin Yahyaabadi 97b65fabfc test: fix the mingw setupDir 2022-05-20 17:07:25 -07:00
Amin Yahyaabadi c667a3fe8e fix: change MingwInfo to have releaseName and fileSuffix 2022-05-20 16:28:35 -07:00
Amin Yahyaabadi d24850cd0e feat: directly download mingw binaries on Windows 2022-05-20 15:58:11 -07:00
Amin Yahyaabadi bdff7f7943 refactor: add setupChocoMingw 2022-05-20 15:19:19 -07:00
Amin Yahyaabadi 209bb28e11 fix: add the exe extension for CC/CXX 2022-05-12 18:42:49 -07:00
Amin Yahyaabadi c8f6527003 fix: add env variables in parallel for llvm and gcc 2022-05-12 18:39:47 -07:00
Amin Yahyaabadi 7e3e265a8a fix: make execPowershell async 2022-05-12 12:55:00 -07:00
Amin Yahyaabadi 69b7a71f02 fix: do not add xenial toolchain 2022-05-02 22:12:53 -07:00
Amin Yahyaabadi 682ca30420 fix: use utils/io instead of `@actions/core` 2022-05-02 21:53:16 -07:00
Amin Yahyaabadi 18f813f0d6 fix: make execaSudo and setupAptPack synchronous
apt is not thread-safe
2022-04-27 00:02:35 -07:00