Commit Graph

88 Commits

Author SHA1 Message Date
Alexander Grund
cb3b3fb544 Avoid caching build artefacts
When we copy the whole boost-root AFTER the build(s) it will contain
also build artefacts such as the bin.v2 folder.
When restoring that later B2 might skip parts of the build although it
should not.
Make a copy after the initial setup & bootstrap.
2024-11-28 15:23:24 +01:00
Alexander Grund
ece2826848 GHA: Cache boost checkout
Instead of cloning the Boost main repository and later potentially many
submodules (by `depinst.py`) we can cache the last checkout.
On any changes the checkout-and-pull should update it to the appropriate
version.
2024-11-28 15:23:24 +01:00
Alexander Grund
d6ccde90dc GHA: Install unofficial Node 20 for Ubuntu 16 & 18 containers 2024-11-28 10:14:12 +01:00
Alexander Grund
dd23abf65f Revert "GHA: Drop use of Ubuntu 16/18 containers"
This reverts commit 670fa83242.
2024-11-28 10:14:12 +01:00
James E. King III
c2f2ead26e Tune up GHA matrix
- Add macos-15
- Move gcc-10+ to 22.04
- Move coverage from gcc-8 to gcc-13 and build with cxxstd 03,2b
- Move coverity to clang-12 and build with cxxstd 03,20
- Remove ubuntu-24.04 container, use 24.04 runner
- Remove redundant libc++ clang-12 build
- Deal with clang-17 incompatibility with libstdc++-13 with cxxstd 2b/23
2024-11-28 10:14:12 +01:00
Alexander Grund
7d1311faff GHA: Use Clang 7 as lowest version for libc++ test
The libc++ package for clang-6.0 does not exist on Ubuntu 20.04
2024-11-27 08:28:07 -05:00
Alexander Grund
670fa83242 GHA: Drop use of Ubuntu 16/18 containers
GitHub actions now requires Node 20 which doesn't work with the old
GLibc version in those containers.
Drop them which means dropping:
- GCC < 7
- Clang < 6
2024-11-27 08:28:07 -05:00
Alexander Grund
8729c59fd5 GHA: Switch to Ubuntu 24.04 for clang 16 & 17
23.04 is EOL und no Clang repos exist anymore
2024-11-26 09:36:54 +01:00
Jim King
7bb1813ba1 Remove macos-12 since GHA stopped supporting it. 2024-11-25 20:26:45 +00:00
Alexander Grund
0e4bc4d58c GHA: Add GCC 13&14 and Clang 18 2024-08-25 14:30:48 +02:00
Alexander Grund
9fa417273c GHA: Use ubuntu-latest for all container jobs 2024-07-04 10:53:51 +02:00
Alexander Grund
7287dcd8ea Set ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION for container jobs
Node 20 isn't supported in containers and GitHub actions forces actions
to use Node 20 even when the action is specified to use Node 16.
See https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default

This causes e.g. `actions/checkout@v3` to fail since that change.
A workaround is to set `$ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION` to
prevent this change (for now).
2024-07-04 10:01:34 +02:00
Alexander Grund
55cf2c246e GHA: Do apt-get update before adding repos
There are failures like
> 	Adding repository ppa:ubuntu-toolchain-r/test
> Error: retrieving gpg key timed out.

So add an intermediate update to avoid this.
2024-07-04 10:00:44 +02:00
Alexander Grund
3907757d09 GHA: Remove macos-11
The image was removed on 28th June 2024
See https://github.blog/changelog/2024-05-20-actions-upcoming-changes-to-github-hosted-macos-runners/#macos-11-deprecation-and-removal
2024-07-03 09:04:45 +02:00
Alexander Grund
7cc23187f4 BDDE: Move setup from CI config to script
Allow seamless updates for all users.
2024-05-15 12:08:27 +02:00
Alexander Grund
0ab7779a85 GHA: Uprev runners for multiarch 2024-05-15 12:08:27 +02:00
Alexander Grund
58211e15c4 GHA: Remove workaround for BDDE
Also don't clone the full history
2024-05-14 10:04:05 +02:00
Alexander Grund
e84e3c1a7f GHA: Fix multi-arch build
As https://github.com/jeking3/bdde/pull/4 is stalled but required for at
least the B2 bootstrap to succeed checkout the PR instead of the main branch
2024-05-11 12:30:20 +02:00
Alexander Grund
418a2ebc51 GHA: Use CODECOV_TOKEN
Avoid rate limits
2024-05-10 23:42:41 +02:00
Alexander Grund
5656326214 GHA: Use CODECOV_TOKEN for upload in compat CI test
Avoid rate limits
2024-05-10 23:40:17 +02:00
Alexander Grund
71b92bd47b GHA: Disable CCache for macos-11
Homebrew is no longer supported on MacOS 11 and installing ccache takes too long (which is described in the "non-support-message" as possibly expected)
2024-05-10 23:26:17 +02:00
Alexander Grund
417a443a1a Merge pull request #216 from boostorg/feature/apt-wrapper-scripts
Add apt wrapper scripts
2024-02-21 18:34:51 +01:00
Alexander Grund
3f8a9bd1cb Merge pull request #221 from boostorg/macos14
GHA: Add macos-14
2024-02-07 16:37:07 +01:00
Alexander Grund
e1a879650b Add macos-14 2024-02-07 14:01:15 +01:00
Alexander Grund
7ee55f1442 GHA: Workaround node20 GLIC issues in older Ubuntu containers
Avoid errors like
> /__e/node20/bin/node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /__e/node20/bin/node)
when using Ubuntu 16/18 containers with the @v4 actions
See https://github.com/actions/checkout/issues/1590
2024-02-07 13:58:54 +01:00
Alexander Grund
73d573ade8 GHA: Workaround failure to build B2 using BDDE
Avoid:
> windres --input res.rc --output res.o
/usr/bin/windres: Can't detect architecture.

And subsequently a missing res.o
2024-02-07 13:58:54 +01:00
Alexander Grund
18b5ff41dc GHA: Update actions to use node20 2024-02-07 13:58:54 +01:00
Alexander Grund
44d4953eb7 GHA: Add Clang on OSX 12 & 13 2023-11-14 09:55:00 +01:00
Alexander Grund
446a75f876 GHA: Test C++2b instead of C++03 for Clang 16&17 2023-11-14 09:55:00 +01:00
Alexander Grund
7208a0d049 GHA: Add Clang 17 2023-11-14 09:55:00 +01:00
Alexander Grund
621c7c593c GHA: Test Clang 16 on Ubuntu 23.04 container 2023-11-14 09:55:00 +01:00
Alexander Grund
d5227b6096 GHA: Add clang 15&16 2023-11-14 09:55:00 +01:00
Alexander Grund
f6b8d39cc4 Use python-is-python3 instead 2023-11-06 16:37:47 +01:00
Alexander Grund
2f56440202 GHA: Fix installation of Python in Ubuntu 22+ containers 2023-11-06 08:49:23 +01:00
Alexander Grund
e9984ff4f6 Fix incompatibility of Clang 13+ after GHA image update 2023-11-04 14:59:04 +01:00
Alexander Grund
0fa495adc7 Fix possible permission issue with writing APT keys
The `sudo` doesn't apply to the redirection of the stdout
so if the invoking user isn't allowed to write to the file the command will fail with "permission denied".

Use the `-o`-parameter to `gpg` instead.
2023-10-16 11:31:16 +02:00
Alexander Grund
f0dde3ff53 GHA: Download ubuntu-toolchain key by default 2023-10-15 19:22:19 +02:00
Alexander Grund
8490bc1434 Add wrapper scripts for adding apt repositories and keys
- Improve error reporting (previous version always succeeded)
- Handle keyserver URLs
2023-10-15 19:22:18 +02:00
sdarwin
beadeac53a LCOV_VERSION variable 2023-06-23 09:07:22 -06:00
Alexander Grund
4558c5a892 Update GHA container jobs
Use Ubuntu 22.04 as the base OS
GCC 7 & 8 are in Ubuntu 20, so no need for containers
2023-06-22 12:29:13 +02:00
Alexander Grund
83254093c2 Use actions/checkout@v3 in old_ci.yml
The current v2 shows a warning
2023-03-24 19:13:03 +01:00
Alexander Grund
175c55a07e GHA: Allow to set $B2_TARGETS in the setup step.
Makes it easier to set everything in one place.
2023-03-24 17:19:43 +01:00
Sam Darwin
d7043253f6 GHA: fix deprecation warnings (#187) 2022-10-17 12:17:28 -06:00
sdarwin
22339faf4c replace apt-key command 2022-10-11 19:50:28 +02:00
Alexander Grund
c6e37f0307 Add name to OSX job
Make it easier to recognize in the list of checks run for a commit/PR
2022-09-12 10:44:29 +02:00
Alexander Grund
42c162c87e Handle multiple entries in B2_DEFINES
As pointed out by @sdarwin multiple values in `B2_DEFINES` led to a failing build as the scripts only supported a single value for the "new" var usages.
This is a regression from the old usage where `B2_DEFINES: define=FOO=1 define=BAR=2` could be used.
This is now fixed by a small parser function which generates multiple `define=*` entries and additionally now also supports spaces in the define values.
Same is done for `B2_INCLUDE` which has the same issue.

Also includes the change to the CI script from #177 and an additional test in test.cpp to verify that this works.
2022-08-12 19:36:20 +02:00
Baoshuo Ren
a9a2ac2d1e chore: bump macos runner version
GitHub Action is sunsetting the macOS 10.15 Actions runner. It will stop working intermittently until being completely removed by 2022-8-30: https://github.blog/changelog/2022-07-20-github-actions-the-macos-10-15-actions-runner-image-is-being-deprecated-and-will-be-removed-by-8-30-22
2022-07-25 15:21:25 +02:00
Alexander Grund
005665a607 Add a full msvc-14.3 and reduce the windows coverage variants
Collecting coverage data on Windows is VERY expensive (takes long).
So only do a 64-bit build with latest standard on msvc-14.3 by default.
Library authors can change that if required.
2022-06-08 18:18:33 +02:00
Alexander Grund
bcb941749a Add msvc-14.0 and clang-win to GHA Windows jobs 2022-06-08 10:04:05 +02:00
Alexander Grund
23c7493aea Revert to Clang 12 for libc++ & Sanitizers
A false positiv starting with Clang 13 prevents us from upgrading.
2022-06-06 09:53:20 +02:00