171 Commits

Author SHA1 Message Date
Roland Reichwein
b9b36d8155
Add bazel support (#1420)
* Add bazel support

* Add github workflow for bazel
2026-04-30 12:30:01 +02:00
Roland Reichwein
a2e274bbc5
Run C++26 workflows with docker (#1421)
Ubuntu 26.04 is not available in github workflows directly and won't be soon.
But ubuntu-26.04 is available as docker container. So use it for running
C++26 workflows which were disabled previously.
2026-04-30 12:27:12 +02:00
Roland Reichwein
a1cd6a5569
Activate -O3 in CI builds for C++23 (#1415)
* Activate -O3 in CI builds for C++23

For good coverage of potential warnings triggered by -O3, activate
it for:

* .github/workflows/clang-c++23.yml
* .github/workflows/gcc-c++23.yml

So additionally necessary CPU resources are limited.

* Use Ubuntu-24.04 to test C++23

---------

Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
2026-04-29 09:33:56 +02:00
Roland Reichwein
2b1dec0e79
Run generator_test.py in CI checks (#1376)
* Print test names at test time (#1343)

* Fix operator| conflict with std::ranges (#1395)

* Run generator_test.py in CI checks

* Remove running generator.bat in CI checks

---------

Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com>
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
2026-04-22 11:31:51 +02:00
Roland Reichwein
5dc682b7ff
Support for C++26 (#1375)
Includes C++26 related infrastructure macros.
Fixes compile errors when compiling under C++26.
Initially supported C++26 features:

- [[indeterminate]]
- new 2022 ISO prefixes in ratio.h
- atomic fetch_max() and fetch_min()
- is_virtual_base_of
- is_trivially_relocatable and trivially_relocate
- saturation arithmetic: add_sat, sub_sat, mul_sat, div_sat, saturate_cast
2026-04-15 15:53:29 +02:00
Roland Reichwein
866c8a315e
Extensions for testing (#1380)
* Extensions for testing

Generalize run-tests.sh

Test all C++ versions at once

Fix combination of big endian and -Wsign-conversion

Failed on s390x (as reference for big endian)

Add github workflow for s390x

Add armhf container files

Devcontainers for i386 and riscv

Add github workflows for armhf, i386 and riscv64

Add run-tests.sh for foreign architectures

Document testing in doc/testing.md

Adjustments from clang-format run

Fix .devcontainer/s390x/Dockerfile for linebreak syntax

Fix exit code of run-test.sh

Previously, "exit $?" was used, actually the return value of
FailedCompilation and FailedTest which are always 0.

Now just using 1.

In run-tests.sh at ctest, use -V for printing number of tests unconditionally

While ctest suppresses individual test list by default, it didn't even
print the number of tests anymore, as run_tests.sh does because
it suppresses it output completely.

Now, by default print number of tests, and in verbose mode, print test list
in addition.

* Support powerpc as foreign architecture

* Add SFINAE constraints to etl::begin/end and reverse iterator free functions

The unconstrained etl::begin(), etl::end(), etl::cbegin(), etl::cend(),
etl::rbegin(), etl::rend(), etl::crbegin(), and etl::crend() templates
in the no-STL code path were matching iterator types during ADL, causing
a hard error with GCC 15's std::ranges::begin. When std::ranges performed
ADL on an etl::*::iterator, it found etl::begin() as a candidate; since
the iterator type has a nested iterator typedef, the return type TContainer::iterator
was valid, but calling .begin() on the iterator failed.

Fix: add etl::void_t<decltype(...)> SFINAE guards to each template,
ensuring they only participate in overload resolution when TContainer
actually has the corresponding member function (.begin(), .end(), etc.).

* - Fix red unit tests on 32 bits big-endian platform.

* Document powerpc architecture for testing

* Use Dockerfiles in cross testing github workflows

Synchronizes environment setup for github workflows to what is
defined in the development Dockerfiles. So they don't need to
be maintained separately.

---------

Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com>
Co-authored-by: Sergei Shirokov <sergej.shirokov@gmail.com>
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
2026-04-15 10:47:52 +02:00
Roland Reichwein
beeb4cf462
Fix coverage workflow for action version (#1384)
* Print test names at test time (#1343)

* Fix coverage workflow for action version

---------

Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com>
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
2026-04-11 10:38:39 +02:00
John Wellbelove
982adecca4 Added manually triggered clang-format action
# Conflicts:
#	.github/workflows/clang-format_update.yaml
2026-04-03 16:55:18 +01:00
John Wellbelove
2059c5b657 Added manually triggered clang-format action
# Conflicts:
#	.github/workflows/clang-format_update.yaml
2026-04-03 16:46:42 +01:00
John Wellbelove
bd6e55b12e Added manually triggered clang-format action
# Conflicts:
#	.github/workflows/clang-format_update.yaml
2026-04-03 16:45:25 +01:00
John Wellbelove
5a7674b637 Added manually triggered clang-format action
# Conflicts:
#	.github/workflows/clang-format_update.yaml
2026-04-03 16:42:29 +01:00
John Wellbelove
2e74b07dff Added manually triggered clang-format action 2026-04-03 16:35:57 +01:00
Roland Reichwein
c536a39f0a Treefmt config 2026-04-02 08:19:45 +01:00
Diogo Cavaleiro
c970fa9bad Add clang-format v18 workflow and configuration 2026-03-31 16:59:09 +01:00
Roland Reichwein
d5fc8d0cd1
Add code coverage report (#1357)
* Print test names at test time (#1343)

* Add code coverage report
2026-03-25 20:48:41 +00:00
Roland Reichwein
78d8b82afb Print test names at test time (#1343) 2026-03-12 20:08:22 +00:00
John Wellbelove
6d6ecc9fb5
Add etl::inplace_function (#1251)
* Imported inplace_function and invoke functionality from original branch

* Fixed spelling mistake

* Update test/CMakeLists.txt

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update test/test_inplace_function.cpp

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Moved member type function_ptr to private section

* Updated comments in inplace_function.h

* Updated action workflows to be triggered on a pull-request based on development branch

* Added suggested changes from PR reviews

---------

Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.co.uk>
2026-01-10 09:46:50 +01:00
Roland Reichwein
8c90eb8ba8 Add etl::format (#1204)
* Synchronize on C++ 17 for "Windows - STL" and "Windows - No STL"

MSVC C++20 handles char* differently on iteration

* Add etl::format

This adds etl::format, guided by std::format, avoiding dynamic memory
allocation
2025-12-22 10:04:15 +00:00
John Wellbelove
868eaa2b79 Changed Github CI to use macos-15 2025-12-09 09:11:07 +00:00
Roland Reichwein
efd5c57419
Change generators to reflect changes in fsm.h and type_traits.h (#1211)
Previous changes were wrongfully made in fsm.h and type_traits.h
instead of in their generator counterparts.

Add CI check to ensure generated files are in sync.
2025-11-27 08:54:13 +00:00
John Wellbelove
96201f7919 Add force CI check on piull requests 2025-09-11 18:21:54 +01:00
John Wellbelove
1af74206d2 Updated PlatformIO action 2025-08-13 16:10:35 +01:00
John Wellbelove
e449a09b3e Added automated PlatformIO update CI action 2025-08-13 10:37:59 +01:00
Roland Reichwein
fe928fa53a
Support C++23 (#1069)
* Support C++23

* Fix syntax checks for correct C++ standard version

---------

Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
2025-05-13 21:27:04 +01:00
Roland Reichwein
9f5ad35d41
Cleanup fixes for C++03 (#1089)
* Typo fixes

* Fix typo

---------

Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
2025-05-13 21:21:50 +01:00
John Wellbelove
0c2434239b Updates to CI scripts 2025-02-01 19:09:41 +00:00
John Wellbelove
bad4046e91 Updated Github Actions to checkout@v4 2024-11-10 17:59:56 +00:00
John Wellbelove
b8aa776c59 Updated workflows 2024-07-31 10:51:41 +01:00
John Wellbelove
87a2e544ad Added 'Syntax Check' to syntax check test runner names. 2024-07-29 10:56:00 +01:00
John Wellbelove
2387ade3c6 Refactored Github CI workflows 2023-11-25 11:29:50 +00:00
John Wellbelove
82420b4f1b Refactored Github CI workflows 2023-11-25 11:23:08 +00:00
John Wellbelove
1e2a127dbe Refactored Github CI workflows 2023-11-25 11:20:28 +00:00
John Wellbelove
d326a7e3f9 Try clang temporary fix for Github CI 2023-11-25 10:45:49 +00:00
John Wellbelove
b973e0cbe7 Try clang temporary fix for Github CI 2023-11-25 10:42:59 +00:00
John Wellbelove
2e3ee1f7e2 Try clang temporary fix for Github CI 2023-11-25 10:33:29 +00:00
John Wellbelove
23d5ca09d9 Try clang temporary fix for Github CI 2023-11-25 10:22:30 +00:00
John Wellbelove
34e621462f Disable Clang C++20 CI tests until Guthub sorts out the issue 2023-11-24 11:09:37 +00:00
John Wellbelove
1f082c6ab3 Remove tempory fix 2023-11-24 11:07:21 +00:00
John Wellbelove
4b25a4c77b Try clang Github fix 2023-11-24 10:51:43 +00:00
John Wellbelove
98ebaff1f9 Removed temporary fix 2023-10-26 22:08:48 +02:00
John Wellbelove
623687fa1c Merge branch 'pull-request/#777-Allow-Building-Tests-as-Submodule-and-GCC-less-than-11' of https://github.com/ETLCPP/etl into pull-request/#777-Allow-Building-Tests-as-Submodule-and-GCC-less-than-11
# Conflicts:
#	.github/workflows/clang.yml
2023-10-26 22:07:31 +02:00
John Wellbelove
3173d7e784 Added pul-request branches to CI 2023-10-26 22:06:48 +02:00
John Wellbelove
adcc4d9e77 Merge branch 'pull-request/#777-Allow-Building-Tests-as-Submodule-and-GCC-less-than-11' of https://github.com/ETLCPP/etl into pull-request/#777-Allow-Building-Tests-as-Submodule-and-GCC-less-than-11 2023-10-26 21:26:48 +02:00
John Wellbelove
95c7f44cc6 Merge branch 'pull-request/#777-Allow-Building-Tests-as-Submodule-and-GCC-less-than-11' of https://github.com/ETLCPP/etl into pull-request/#777-Allow-Building-Tests-as-Submodule-and-GCC-less-than-11 2023-10-26 21:02:44 +02:00
John Wellbelove
0c1bed079a Merge branch 'pull-request/#777-Allow-Building-Tests-as-Submodule-and-GCC-less-than-11' of https://github.com/ETLCPP/etl into pull-request/#777-Allow-Building-Tests-as-Submodule-and-GCC-less-than-11 2023-10-26 20:26:31 +02:00
John Wellbelove
f47fdfc0ff Try to fix library error for Github Actions for Clang C++20 2023-10-26 20:24:47 +02:00
John Wellbelove
f208eb4073 Try to fix library error for Github Actions for Clang C++20 2023-10-26 20:10:22 +02:00
John Wellbelove
ef3c6981fe Revert "Experimental -02 optimisation"
This reverts commit 3e0240591fe6886075e7b518a2eafdf6d32e0cc8.
2023-07-11 10:26:49 +01:00
John Wellbelove
3e0240591f Experimental -02 optimisation 2023-07-11 08:03:55 +01:00
John Wellbelove
f4b8fd73c6 Updated Github actions yml files 2023-05-08 17:19:01 +01:00