Commit Graph

1322 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 dd5d0e8699
Merge pull request #219 from aminya/renovate/fedora-40.x [skip ci]
chore(deps): update fedora docker tag to v40
2024-01-20 22:46:45 -08:00
renovate[bot] 264b8374eb
chore(deps): update fedora docker tag to v40 2024-01-21 06:11:47 +00:00
Amin Yahyaabadi 20388ee176
Merge pull request #216 from aminya/renovate/actions-setup-node-4.x [skip ci]
chore(deps): update actions/setup-node action to v4
2024-01-20 17:44:20 -08:00
renovate[bot] ae0ebdc3d5
chore(deps): update actions/setup-node action to v4 2024-01-21 01:02:29 +00:00
Amin Yahyaabadi 43d5bd524a
Merge pull request #213 from aminya/renovate/actions-cache-4.x [skip ci]
chore(deps): update actions/cache action to v4
2024-01-20 14:38:36 -08:00
Amin Yahyaabadi c5353c0863
Merge pull request #214 from aminya/renovate/actions-checkout-4.x [skip ci]
chore(deps): update actions/checkout action to v4
2024-01-20 14:38:19 -08:00
renovate[bot] 9ac5afb42a
chore(deps): update actions/checkout action to v4 2024-01-20 22:33:44 +00:00
renovate[bot] 5a9e4ef868
chore(deps): update actions/cache action to v4 2024-01-20 22:33:40 +00:00
Amin Yahyaabadi 6e563b8e5f chore: v0.36.1 [skip test] 2023-11-15 11:04:51 -08:00
Amin Yahyaabadi 0f23eb0c23
Merge pull request #210 from aminya/versions [skip ci] 2023-11-15 11:03:01 -08:00
Amin Yahyaabadi 7987f9195b fix: use llvm 17.0.4 on Windows 2023-11-14 11:38:59 -08:00
Amin Yahyaabadi b532e97a17 fix: update llvm to 17.0.5 2023-11-14 11:15:00 -08:00
Amin Yahyaabadi 0f59570d63 fix: update Conan, Meson, Task 2023-11-14 11:10:02 -08:00
Amin Yahyaabadi 0343736846 chore: update built files [skip ci] 2023-10-22 17:14:00 -07:00
Amin Yahyaabadi baac8c6db3 chore: v0.36.0 [skip test] 2023-10-22 17:12:39 -07:00
Amin Yahyaabadi c3c5a8178f
Merge pull request #209 from iainchesworth/feature/add-support-for-llvm-17
Feature/add support for llvm 17
2023-10-21 18:16:01 -07:00
Iain Chesworth ec2fe0a7d5 Add Ubuntu 22.04 specific default for LLVM 17.0.2 2023-10-21 23:37:19 +11:00
Iain Chesworth f1914d3936 Update default on Windows to 17.0.3, Linux to 17.0.2, and the "default" to 17.0.3. 2023-10-21 23:31:38 +11:00
Iain Chesworth 0af408ae6a Add support for LLVM 17 on Windows, Linux. 2023-10-21 23:18:02 +11:00
Amin Yahyaabadi a296e2c916 chore: v0.35.7 [skip test] 2023-10-20 11:32:28 -07:00
Amin Yahyaabadi 4083828161
Merge pull request #207 from aminya/msvc [skip ci] 2023-10-20 09:53:58 -07:00
Amin Yahyaabadi de1bfe912f chore: fix the linting issues 2023-10-19 10:15:20 -07:00
Amin Yahyaabadi ce47e106b8 fix: support finding BuildTools msvc 2023-10-19 10:12:36 -07:00
Amin Yahyaabadi e85adb2ac6 docs: update the docs for exec-powershell [skip ci] 2023-10-19 09:57:34 -07:00
Amin Yahyaabadi 10b6a5e666 docs: mention Node 12 or higher requirement [skip ci] 2023-09-11 14:02:43 -07:00
Amin Yahyaabadi e2b11c45c1 fix: specify NODE_MAJOR as 20 [skip ci] 2023-09-11 13:56:44 -07:00
Amin Yahyaabadi 8f9bbe3ffa
Merge pull request #205 from aminya/docs [skip ci] 2023-09-11 13:52:50 -07:00
Amin Yahyaabadi 20bb9d646a docs: use npm in setup-cpp for GitLab [skip ci] 2023-09-11 13:52:27 -07:00
Amin Yahyaabadi 9833f067a0 docs: add docerk file for ubuntu 20.04 2023-09-11 13:50:40 -07:00
Amin Yahyaabadi 436e27cecb chore: v0.35.6 [skip test] 2023-09-11 11:48:10 -07:00
Amin Yahyaabadi 6a37ff7253 fix: fix grantUserWriteAccess for cpprc 2023-09-11 11:47:10 -07:00
Amin Yahyaabadi bb4056425a
Merge pull request #203 from aminya/chown [skip ci]
feat: use grantUserWriteAccess from admina and await it
2023-09-11 11:33:14 -07:00
Amin Yahyaabadi 4f69ae3519 feat: use grantUserWriteAccess from admina and await it 2023-09-11 11:05:16 -07:00
Amin Yahyaabadi 5f4cbc86cd chore: v0.35.5 [skip test] 2023-09-11 09:47:45 -07:00
Amin Yahyaabadi 0cf6799b89
Merge pull request #202 from aminya/clang-format-version [skip ci] 2023-09-11 09:46:05 -07:00
Amin Yahyaabadi 17286fce04 fix: specify the major version for clang-format 2023-09-11 09:09:40 -07:00
Amin Yahyaabadi 15f7626551 chore: v0.35.4 [skip test] 2023-09-11 01:21:58 -07:00
Amin Yahyaabadi edd2c831ed fix: remove pip caching from actions_python 2023-09-11 01:21:43 -07:00
Amin Yahyaabadi d3a4b94794 fix: choose clang-format before other patches 2023-09-11 00:28:17 -07:00
Amin Yahyaabadi 9e5af3bc58
Merge pull request #201 from aminya/clang-format [skip ci] 2023-09-11 00:16:55 -07:00
Amin Yahyaabadi 734bc14554 feat: support only installing clang-format on Ubuntu 2023-09-10 23:58:16 -07:00
Amin Yahyaabadi 4ca8d58635
Merge pull request #199 from aminya/setup-python-bundle [skip ci] 2023-09-07 23:55:33 -07:00
Amin Yahyaabadi 96396ce7c5 perf: add dynamically loaded cache-dependencies for actions python
This reduces the main bundle size by ⚠️  1.28 MB minified! This bundle is loaded only when caching is enabled.

`setup-python` is used in [`setup-cpp`](https://github.com/aminya/setup-cpp) as a library. This optimization reduces the bundle size for that package as well. The build system of `setup-python` uses `ncc`, which doesn't immediately benefit from this change, but setup-cpp uses `Parcel`, which shows this huge improvement.

The reason for this huge reduction is that caching the dependencies uses the `@actions/cache` package, which is an extremely large package with big dependencies. The bundle size before this separation shows this:
![Screenshot_20230907_230625](https://github.com/actions/setup-python/assets/16418197/ec1baf34-85c3-459d-b8cf-894899959b2c)
2023-09-07 23:21:19 -07:00
Amin Yahyaabadi ffff3ab313 chore: v0.35.3 [skip test] 2023-09-07 14:15:08 -07:00
Amin Yahyaabadi 771f77f24f
Merge pull request #198 from aminya/fixes [skip ci] 2023-09-07 13:58:58 -07:00
Amin Yahyaabadi 99191e7285 fix: async grantUserWriteAccess 2023-09-07 13:47:30 -07:00
Amin Yahyaabadi 5126444593 fix: optimize the build with terser-config-atomic 2023-09-07 13:46:37 -07:00
Amin Yahyaabadi ff2b1155f8 fix: fix memoization for promises 2023-09-07 13:46:36 -07:00
Amin Yahyaabadi afcae25e9d
Merge pull request #196 from aminya/venv [skip ci] 2023-09-07 13:07:52 -07:00