Commit Graph

127 Commits

Author SHA1 Message Date
Amin Yahyaabadi 24f9b03dc4 fix: fix ci-info not running in an ESM context 2024-10-06 20:48:03 -07:00
Amin Yahyaabadi 59c68f43d8
fix: fix mingw version satisfaction check 2024-09-22 22:33:33 -07:00
Amin Yahyaabadi ed3b715dd5
fix: add range specifier for simple versions 2024-09-22 22:11:55 -07:00
Amin Yahyaabadi 5e9dd36c6f
feat: support runtime, thread, and exception model on MinGW windows 2024-09-22 21:44:13 -07:00
Amin Yahyaabadi 1e3ecc0794
fix: refactor setupMinGW into an independent function 2024-09-22 21:19:57 -07:00
Amin Yahyaabadi f6458ee4e1
fix: fix the build + downgrade eslint to 8 2024-09-20 15:29:42 -07:00
Amin Yahyaabadi e003dfdeac
feat: find LLVM assets based on platform/arch/version heuristics 2024-09-07 17:30:45 -07:00
Amin Yahyaabadi 22bfbec1e0
fix: match assets via keywords 2024-09-07 16:04:03 -07:00
Amin Yahyaabadi 8d16de0d38
feat: add generic saveHTMLAssets util 2024-09-07 02:13:15 -07:00
Amin Yahyaabadi d54a82148a
fix: minify json assets via @aminya/minijson 2024-09-07 00:42:27 -07:00
Amin Yahyaabadi 6e3b572a56
fix: filter 7z in mingw asset list 2024-09-04 02:04:32 -07:00
Amin Yahyaabadi 3e4a96d3c7
fix: use patha only when needed 2024-09-04 02:04:32 -07:00
Amin Yahyaabadi 8302e555d2
fix: do not use __dirname 2024-09-04 00:56:29 -07:00
Amin Yahyaabadi 8db3315e6c
feat: add Modern ESModule target via Vite 2024-09-03 23:19:49 -07:00
Amin Yahyaabadi bd9b386672
fix: fix parsing of gcc version on macos + sort gcc exes 2024-09-03 14:52:31 -07:00
Amin Yahyaabadi c2e0936c40
fix: search under bindir for gcc exe 2024-09-03 14:16:56 -07:00
Amin Yahyaabadi 7cb1fce6d7
fix: more robust version getting from gcc cmd 2024-09-03 12:20:35 -07:00
Amin Yahyaabadi 4e9255bbdf
test: test the default GCC version correctly 2024-09-03 05:02:24 -07:00
Amin Yahyaabadi 6cf096c7bf
fix: detect default gcc version via cmd 2024-09-03 04:28:04 -07:00
Amin Yahyaabadi a45740c01f
fix: fix default gcc version + fix Mingw arch 2024-09-03 04:08:37 -07:00
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