Commit Graph

462 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
14e67f3ee7 Show b2 binary and source version 2024-11-28 15:23:23 +01:00
Alexander Grund
b2e7e5cfbd Drone: Report errors when failing to change KASLR 2024-11-28 14:52:13 +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
1e1ce8a219 Make b2 version detection more robust 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
d5d92b3241 Drone: Allow passing privileged to job_impl and set for tsan by default (#243)
* Drone: Allow passing `privileged` to `job_impl` and set for tsan by default

* Also set DRONE_EXTRA_PRIVILEGED
2024-11-27 06:14:15 -07:00
Alexander Grund
d26b34c046 Drone: Check coverity details only when required
Avoid failures in PRs which might not have access to secrets.
2024-11-27 13:43:23 +01: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
3cb06a3532 Update XCode runners on AzP
macOS-11 is no longer available
Add 13 & 14
2024-07-05 15:55:38 +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
714e120e65 Fix add-apt-repositories.sh & add-apt-keys
The loop syntax was wrong, so fix or remove it
(curl already has the retry option)

Also add retry and failed messages
2024-07-04 10:00:44 +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
78ae41322f Drone: Workaround ASAN/TSAN issues with ASLR
ASAN may throw
> AddressSanitizer:DEADLYSIGNAL

TASAN May throw
> FATAL: ThreadSanitizer: unexpected memory mapping 0x5c9bd4d2b000-0x5c9bd4d4b000

Cause is ASLR using more bits (than before), so reduce that
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
Sam Darwin
9afe200290 Improve handling of lcov 2.1 (#231) 2024-05-13 09:08:15 -06:00
Alexander Grund
7198fc35c4 Fix unbound variable in coverity.sh 2024-05-11 15:21:22 +02:00
Alexander Grund
e1712e0ddb Set executable permissions for ci/coverity.sh 2024-05-11 12:38:13 +02:00
Alexander Grund
d6b30d89ae CI: Trim trailing whitespace 2024-05-11 12:37:35 +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
df0679cc0e README: Enhance information on token/secrets 2024-05-11 11:44:55 +02:00
Alexander Grund
daa03568ed GHA: Remove certificate for coverity
The URL is no longer available
2024-05-11 00:10:02 +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
bfd2d14c62 Remove cert download for coverityscan
The certificate URL is no longer valid.
2024-05-10 23:28:03 +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
cad342d3aa enforce.sh: Refactoring
Move legacy codepath to the end to emphasize the use of B2_CI_VERSION
Add some more comments
2024-05-10 17:39:06 +02:00
Alexander Grund
a522459458 README: Mention B2_CI_VERSION 2024-05-10 17:28:41 +02:00
Alexander Grund
ed7ead8ae9 Use $CODECOV_TOKEN if set 2024-04-17 14:56:59 +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
ea6b3a18a6 Merge pull request #225 from boostorg/multi-lib-get_libname
get_libname: Support a list of libraries in libraries.json
2024-02-07 13:59:16 +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
3937fee763 Appveyor: Add 32bit Mingw64 build 2024-02-07 13:55:55 +01:00
Alexander Grund
d8afbb0a5e Drone: Workaround mt.exe failure on MSVC-14.0
Avoid "LINK : fatal error LNK1158: cannot run 'mt.exe'"
See https://github.com/bfgroup/b2/issues/356
2024-02-06 23:18:03 +01:00
Alexander Grund
d633c1dbb1 Drone: Update OSX jobs
Remove XCode 9 (removed runner) and add XCode 15
Also add latest and oldest XCode for 10, 11, 12, 13, 14
2024-02-06 23:18:03 +01:00
Alexander Grund
af627f7826 Drone: Set $COVERITY_SCAN_NOTIFICATION_EMAIL and $COVERITY_SCAN_TOKEN defaults (#229)
Use a similar mechanism to codecov to set the token and EMail from secrets
2024-02-06 12:32:00 -07:00