Commit Graph

107 Commits

Author SHA1 Message Date
Amin Yahyaabadi 11fad2b093
feat: use GitHub API to find a matching MinGW releases 2024-09-03 03:54:07 -07:00
Amin Yahyaabadi 81c10d4abc
fix: use the default version on Ubuntu, Fedora, Arch, macOS, etc. 2024-09-03 03:43:50 -07:00
Amin Yahyaabadi adb1af1e17
fix!: only support a single repository/key for each apt package
BREAKING the option for repositories/keys are now singular instead of an array
2024-08-28 14:30:38 -07:00
Amin Yahyaabadi 19bf09e888
feat!: support addAptKey options through installAptPack
BREAKING no default keys are added during apt installations anymore. Explicitly pass the keys needed.
BREAKING the arguments to addAptKeyViaServer and addAptKeyViaDownload has changed. addAptKeyViaDownload renamed to addAptKeyViaURL
2024-08-28 13:55:40 -07:00
Amin Yahyaabadi f2d212e7ec
feat: introduce setup-brew package 2024-08-23 15:20:37 -07:00
Amin Yahyaabadi d3b2f3531c
fix!: rename os-env to envosman due to npm conflict 2024-08-16 02:56:38 -07:00
Amin Yahyaabadi ad1b1ee820
refactor: refactor and add docs for setup-apt functions 2024-08-16 02:19:59 -07:00
Amin Yahyaabadi dc74686724
feat: add setup-apt package for all the apt utils 2024-08-16 01:50:32 -07:00
Amin Yahyaabadi 08cf20cc0e
fix: add js file extension for all relative imports 2024-08-15 15:22:07 -07:00
Amin Yahyaabadi 771228c4ae
feat!: add guard and source RC options for os-env 2024-08-14 19:07:39 -07:00
Amin Yahyaabadi 77e643057d
feat: add os-env package for managing path, env, rc files 2024-08-14 18:22:33 -07:00
Amin Yahyaabadi 4ab758d47f
fix: add biome linter + fix the issues 2024-08-06 23:44:32 -07:00
Amin Yahyaabadi 1d9b24d3a2 fix: use fs/promises instead of sync fs 2024-04-03 01:09:24 -07:00
Amin Yahyaabadi 15f5776d5f lint: use dprint for formatting 2024-04-03 00:15:43 -07:00
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