1
0
mirror of https://github.com/catchorg/Catch2.git synced 2025-06-19 03:26:07 -04:00
Commit Graph

53 Commits

Author SHA1 Message Date
dde8220613 Add VS 2025 CI jobs 2025-04-27 11:08:50 -06:00
cecb02e68f Use presets in CI 2025-04-27 11:08:48 -06:00
66085dac55 Simplify Windows CI jobs 2025-04-27 11:08:45 -06:00
10d1a2750c Simplify Linux CI jobs 2025-04-26 22:46:48 -06:00
c17d69f813 Simplify macOS CI jobs 2025-04-26 22:46:45 -06:00
5c97a8583d Use more modern -S for specifying CMake source dir 2025-04-26 10:59:42 -06:00
6aac11e17d Use CTest --output-on-failure flag 2025-04-26 10:37:44 -06:00
ec571515c8 Don't fail CI fast 2025-04-26 10:37:36 -06:00
25b86ef3fd Upgrade CI runners to Ubuntu 22 2025-04-25 23:14:06 -06:00
7c2e1fb1b2 Update Intel Mac builds to macos-13 images for MacOS GitHub Actions
macos-12 images will be removed on 3.12.2024, and macos-14 no
longer support Intel-based MacOS in free (OSS) tier.
2024-10-26 16:55:15 +02:00
aad0a3a8d6 Prune away g++-11 build from Mac 2024-08-13 19:36:19 +02:00
595bf9864e Update to macos-12 GHA image
Since the last time, macos-12 has fixed the toolchain's linker
crash bug, so we can update here. macos-13 has a new and exciting
bug when unwinding exceptions in binaries compiled with GCC, so
we cannot update all the way at this time.
2024-07-22 10:47:25 +02:00
355a6e273b Add M1 MacOS workflow 2024-04-06 20:27:14 +02:00
ad99834c14 Add back g++ 5 and 6 to the CI builds
Previously these were removed in bbba3d8a06,
to allow Decomposer changes that were not compatible with old
GCCs. However, the compatibility was restored in
459ac8562b, and so we can restore
the builds again.
2024-03-26 18:11:01 +01:00
a2a3c55058 Improve Conan recipe support ()
* Improve Conan recipe support
* export files
* supports c++14
* update Conan client in the CI
* Better compatibility with Conan 1.x
* Manage options and cppstd for Conan 1.x
* copy eveything from extra


Signed-off-by: Uilian Ries <uilianries@gmail.com>
2024-03-12 22:59:28 +01:00
7677c1658e ci: add clang-tidy run 2024-03-01 21:24:45 +01:00
62d4aecb8c Conan v2 ()
* Removed Conan1 build.py file using conan package tools that are no longer supported

* Working conan 1 and 2 build with the test package. 

updated the test_package to be updated to conan 2 and fixed missing cmake. Still need to check that the license file is packaged up and that the packages look identical before the changes

* Removing debug prints and the license check that isn't working yet

* Working license file copied over as it was before

* Migrated the properties of cpp_info to conan 2. Keeping conan 1 support by checking the version of conan

https://docs.conan.io/1/migrating_to_2.0/properties.html

* Revert "Removed Conan1 build.py file using conan package tools that are no longer supported"

This reverts commit a606d1dfe6.

* Need to add a set_version to parse the version from CMakeLists.txt

Adding a package build yaml to ensure conan keeps building on 1 and 2

* Setting lowercase catch2 for pkg_config and cmake_target_name

* Fixing the namespace for conan file cmake_target_name
2024-02-17 16:42:44 +01:00
bbba3d8a06 Disable CI for GCC 5 and 6
They can't compile the new constexpr decomposer because
`ITransientExpression` has a defaulted virtual destructor. We could
instead drop the virtual destructor - it only exists to silence
static analysis tools complaining about having virtual functions
without virtual destructor - but GCC 5 and 6 are positively ancient,
so we drop them instead.
2024-02-11 14:36:17 +01:00
658acee86e Run tests on all cores in GHA jobs 2024-01-15 14:22:45 +01:00
d1d7414eb9 Always run apt-get update before apt-get install
The base images for GitHub Actions are updated weekly, but
sometimes that is not enough to be able to install the packages
we require. The recommended fix for this is to always run
`apt-get update` before `apt-get install`.
2023-12-09 12:05:45 +01:00
01cac90c62 Bump up actions/checkout version to v4 () 2023-11-09 10:31:49 +01:00
b735dfce2d Increase build parallelism on macOS ()
Co-authored-by: Martin Hořeňovský <martin.horenovsky@gmail.com>
2023-11-07 22:17:47 +01:00
c8363143e7 Add test scaffolding for catch_discover_tests 2023-06-14 21:14:33 +02:00
72b60dfd28 Cleanup the Windows GHA builds
* Use CMD as the shell and simplify configure/build steps
* Include plaform in the build name
2022-12-30 23:58:05 +01:00
77fbacb03f Add VS 2019-2022 C+14/17 jobs to GHA
For now I added only the basic build matrix, without coverage
collection and more special builds, like WMAIN.

However, due to GHA being so much faster than AppVeyor, all
these builds are now done against the 'all-tests' prefix, making
the builds more uniform than they were on AppVeyor.
2022-12-16 22:34:33 +01:00
2d7be1f7de Add Clang-10 and GCC-10 C++20 builds 2022-11-22 16:17:18 +01:00
41990e0fe6 Fix Bazel build ()
Also adds a CI job for Bazel build to avoid future breakage.
2022-11-11 16:54:22 +01:00
0a1b0ae9d1 Meson build fixes
* Add missing files to `tests/meson.build`
* Rename meson build workflows to be more easily identifiable
2022-11-04 19:24:36 +01:00
272bed081e Set CMAKE_CXX_STANDARD_REQUIRED=ON in Github Action builds 2022-10-29 21:05:02 +02:00
e94976ec9c Downgrade MacOS version in GHA 2022-10-15 13:06:50 +02:00
4db8b50aab Add support for building with Meson ()
The Meson[1] build system makes it easier incorporate third-party
libaries into a project if they also build using Meson.

Let's add a minimal Meson build that's compatible with the CMake build,
along with a GitHub workflow to check that it builds and that at least
the simplest SelfTest runs.

The handling of catch_user_config.hpp is inspired by BUILD.bazel and
doesn't attempt to support any configuratons options. Such features
could be added later.

Meson strongly discourages using wildcards to specify sources, so the
source and header lists are copied from CMakeLists.txt.

Add a new test workflow to test the Meson builds. I was unable to get
these tests to pass with Ubuntu 20.04, so they use Ubuntu 22.04.

I'm neither a CMake nor a Meson expert, but the results seem to work for
me.

[1] https://mesonbuild.com/

Co-authored-by: Mike Crowe <mcrowe@brightsign.biz>
2022-10-01 23:28:30 +02:00
c75430834d Add GCC 5 and GCC 6 to CI 2022-09-15 13:40:16 +02:00
a118799631 Switch MacOS image to macos-12 in Github Actions
Also updated GCC version to GCC-11, which is packaged in the
runner image.
2022-08-03 23:54:49 +02:00
c2bc321607 Add pipeline running tests under Valgrind to GitHub Action 2022-04-24 13:34:50 +02:00
ea9029c478 Fix pkg list name in CMake config workflow 2022-04-24 13:34:36 +02:00
72f0372664 Add tests for CMake configure toggles passing to Catch2 build 2022-02-20 19:32:30 +01:00
96790b1d23 Always install the used compiler in Github Actions
This avoids the CI breaking again when the base images remove
an older compiler again.
2021-05-28 11:30:06 +02:00
2cb5210caf Fix and improve GitHub Actions CI
* Fixed problem with older compilers by explicitly installing the
  right compiler version.
* Split apart simple builds that can be well described by a build
  matrix, and builds that need special CMake defines or similar
  special snowflake handling.
* Ported some extras + examples builds from TravisCI to GitHub
  Actions.
2021-04-30 23:26:28 +02:00
749d953712 Add Clang 10 + C++17 build to linux CI 2021-02-20 22:26:22 +01:00
4b50b13970 Disable C++ extensions for linux CI builds 2021-02-20 20:39:23 +01:00
29050daec0 Add Linux and Windows CI builds with surrogate TUs 2021-02-19 23:23:00 +01:00
c787b1edc9 Make Linux builds print stdout on ctest test failure 2020-12-15 09:58:19 +01:00
230f23e6ee Add more Clang builds to github actions 2020-11-29 10:22:21 +01:00
88504e5332 Use Ubuntu-20.04 runner for running header guard validation
Using `ubuntu-latest` is triggering warning that it will soon migrate
from 18.04 to 20.04, so I am migrating preventively.
2020-11-28 23:09:10 +01:00
4da0c18526 C++17 Mac builds 2020-11-28 21:13:00 +01:00
1d746a15ac Move Examples and ExtraTests Mac builds to Github Actions 2020-11-28 21:03:38 +01:00
f30a9e3feb Move some Mac builds from Travis to GitHub Actions 2020-11-28 17:47:26 +01:00
0442229dc9 Start using GitHub actions for Linux builds
For now we switched only some of the builds, those that do not
need manually installed compiler packages to function.
2020-11-28 11:13:16 +01:00
0fa133a0c5 Run checking scripts directly 2020-11-10 15:25:52 +01:00
447b39cae0 Better names for misc-checks workflow steps 2020-11-10 15:25:24 +01:00