Commit Graph

72 Commits

Author SHA1 Message Date
Peter Dimov
d5a57eb725 Increase timeout in ci.yml for macos-13 2025-10-20 06:11:34 +03:00
Andrey Semashev
58f469cd80 Added ARM jobs in GitHub Actions. 2025-06-13 02:30:14 +03:00
Andrey Semashev
457d6a8ad0 Use Azure mirrors of Ubuntu .deb repositories in containers.
This reduces the likelihood of spurious CI failures caused by DDoS filters
being triggered by massive numbers of concurrent CI jobs.
2025-06-13 02:23:02 +03:00
Andrey Semashev
e3d8de377b Removed windows-2019 jobs from GitHub Actions.
The windows-2019 image is deprecated and is about to be removed.

https://github.com/actions/runner-images/issues/12045
2025-06-13 02:21:12 +03:00
Peter Dimov
6e05e5e764 Update ci.yml 2025-06-06 21:00:18 +03:00
Dirk Stolle
c48b7f269f Move Ubuntu 20.04 builds to container or newer Ubuntu version
The Ubuntu 20.04 image on GitHub Actions will be unavailable by
2025-04-15. See <https://github.com/actions/runner-images/issues/11101>
for more information on the deprecation and removal.

Therefore all build jobs that use the Ubuntu 20.04 runner image
of GHA have to be either migrated to a newer runner image (if
the compiler version is available on a newer image) or have to be
moved to Docker containers using Ubuntu 20.04 (if the compiler
version is not available on the newer runner images).
2025-04-16 02:07:28 +02:00
Peter Dimov
749b6340b5 Update ci.yml 2024-11-27 20:58:46 +02:00
Peter Dimov
8ebe2e7f57 Update ci.yml 2024-11-10 19:57:55 +02:00
Peter Dimov
d66b8c1c13 Update ci.yml 2024-07-13 13:32:29 +03:00
Andrey Semashev
a77338b1cd Use macos-14 image instead of macos-11 as the latter is being removed. 2024-05-21 01:06:02 +03:00
Andrey Semashev
ccfee3f638 Switch posix-cmake-test to use Ninja instead of Makefiles.
This is yet another workaround for hanging posix-cmake-test on Mac OS.
This enables parallel builds again, but uses Ninja build system instead
of Makefiles. Enabling parallel builds speeds up the build process and
releases Mac OS builders for other jobs sooner.

Additionally, fix incorrect apt invocations in CMake-related jobs. apt
is supposed to be used in interactive shells, and in scripts apt-get is
recommended. Also, apt-get update is needed before apt install, and
matrix.install must be transformed to a space-separated list. Also added
retries on network errors.
2024-02-06 14:16:34 +03:00
Andrey Semashev
45e7e1a91a Reduced CMake-related job timeouts. 2024-02-06 06:07:30 +03:00
Andrey Semashev
ce20d15048 Fix posix-cmake-test failures on Mac OS.
Properly set BUILD_JOBS environment variable in CMake-related jobs as
it is used in build and run steps. Without the variable being set, -j
without a number means "no limit on the number of jobs", which may
hit system resource limits and cause the job to fail.

Also, Mac OS seem to sometimes hang on too many parallel build jobs,
even if BUILD_JOBS is specified correctly. So disable parallel builds
for now.

Additionally, use GIT_FETCH_JOBS universally.
2024-02-06 06:06:49 +03:00
Andrey Semashev
b077925d77 Reduced CI job timeouts. 2024-02-06 01:55:42 +03:00
Andrey Semashev
61191fc0a1 Replaced actions/checkout usage with manual download commands.
This fixes the deprecation warnings for actions/checkout@v3. actions/checkout@v4
is not functional because of the upstream bug:

https://github.com/actions/checkout/issues/1590
2024-02-05 23:34:59 +03:00
Peter Dimov
db20a49e48 Increase GHA timeouts 2024-01-07 01:41:30 +02:00
Peter Dimov
a57c78221b Add timeouts to all jobs 2024-01-04 14:21:44 +02:00
Andrey Semashev
7cbbb08e7b Use libstdc++11 for clang prior to 16.
Clang prior to version 16 does not support libstdc++13 that is installed
by default in GHA image ubuntu 22.04 in C++20 mode.
2023-11-25 16:04:12 +03:00
Peter Dimov
2a70a0f239 Update ci.yml 2023-10-06 11:20:05 +03:00
Andrey Semashev
8d6d20059a Switch CI to clang-15 from stock Ubuntu repos. 2023-06-05 03:13:05 +03:00
Peter Dimov
d4db3eccec Add Clang 16 to CI 2023-06-02 18:07:06 +03:00
Peter Dimov
f2eab6d6ff Update ci.yml 2023-05-21 15:26:47 +03:00
Peter Dimov
94628cb2f9 Use undefined-sanitizer=norecover instead of cxxflags 2023-02-21 17:47:38 +02:00
Peter Dimov
642a0cf70e Update ci.yml 2023-01-25 01:56:57 +02:00
Andrey Semashev
65377a2e13 Updated to GHA checkout@v3 to avoid deprecation warnings. 2022-10-18 17:55:59 +03:00
Andrey Semashev
09f2aa123a Enabled parallel build in CMake CI jobs. 2022-09-21 21:14:13 +03:00
Andrey Semashev
a7f76af262 Fixed unintentional change to CMake configure step in GHA config. 2022-09-21 20:00:24 +03:00
Andrey Semashev
860eed6baf Use depinst to install library dependencies in GHA config. 2022-09-21 19:19:38 +03:00
Andrey Semashev
68f8f36b04 GitHub Actions config update.
- Added clang-15 jobs.
- Added C++23 testing for gcc and clang on Linux.
- Updated clang version for UBSAN job.
- Removed clang-12 libc++ job - libc++ is now tested with clang-15.
- Updated Ubuntu version for clang jobs to avoid having to use external APT
  repository.
- Updated python package installation for compatibility with Ubuntu 22.04.
2022-09-10 00:55:04 +03:00
Andrey Semashev
414dfb4668 Removed ubuntu-18.04 image from CMake tests in GHA config as this image is deprecated. 2022-08-14 18:27:48 +03:00
Andrey Semashev
1b3a907394 Switched gcc-9 to ubuntu-20.04 GHA CI image. 2022-08-14 17:51:54 +03:00
Andrey Semashev
ab23246301 Replaced ubuntu-18.04 GHA CI images with containers.
Also use ubuntu-latest image for jobs that are running in a container.
2022-08-14 14:24:08 +03:00
Baoshuo Ren
38937b0fa3 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 14:35:22 +08:00
Peter Dimov
ac9d79992e Update ci.yml 2022-06-24 14:09:47 +03:00
Peter Dimov
43d0da03f3 Remove msvc-14.1 from ci.yml 2022-04-28 21:28:11 +03:00
Peter Dimov
35a4e09854 Add clang-win to GHA 2022-02-15 05:46:09 +02:00
Andrey Semashev
65723e0e1f Added clang-13 CI jobs. 2021-12-23 14:50:35 +03:00
Peter Dimov
0ef1c06fd8 Add cxxstd=20 to msvc-14.2, msvc-14.3 2021-12-18 21:59:21 +02:00
Peter Dimov
c83e682b7e Update ci.yml 2021-12-18 05:05:36 +02:00
Peter Dimov
7a79d17da2 Add conversions from and to boost::string_view 2021-12-18 04:15:06 +02:00
Andrey Semashev
a1ad1784bf Updated check for apt-add-repository capabilities.
In Ubuntu 20.04 there appeared an updated version of the
software-properties-common package in focal-updates, which ships a newer
apt-add-repository version that doesn't support -P/-S/-U command line arguments.

Since we cannot rely on package version checks to determine apt-add-repository
capabilities, we have to parse its --help output instead.

Also, made source list processing more protected against spaces.
2021-11-16 00:36:15 +03:00
Peter Dimov
cbf03c4b9c Add msvc-14.3 to GHA 2021-10-26 00:54:37 +03:00
Peter Dimov
b677d1eeae Only update the necessary submodules in ci.yml 2021-10-10 19:35:26 +03:00
Peter Dimov
773499db5e Remove concurrency section from ci.yml 2021-10-10 18:23:21 +03:00
Peter Dimov
ce912859aa Change cancel-in-progress to false in ci.yml 2021-10-10 18:22:08 +03:00
Andrey Semashev
b83f27a9e0 Another fix in git version check. 2021-09-26 20:35:37 +03:00
Andrey Semashev
578e3105b8 Fixed git version check on Mac OS. 2021-09-26 20:31:43 +03:00
Andrey Semashev
f34c4986c1 Added a timeout for GHA CI. 2021-09-15 20:45:23 +03:00
Andrey Semashev
cfd469d858 Removed unused reference to extra_tests variable in GHA config. 2021-09-15 18:27:17 +03:00
Peter Dimov
cffaabead8 Update and fix CMake test jobs 2021-09-14 18:49:03 +03:00