2
0
mirror of https://github.com/boostorg/locale.git synced 2026-01-19 04:22:08 +00:00

78 Commits

Author SHA1 Message Date
Alexander Grund
b38a271b48 Fix format of ICU_PATH in project-config.jam
It needs forward slashes even on Windows
2025-11-02 14:45:30 +01:00
Alexander Grund
5b1acded7f Show more information for Windows coverage run on GHA 2025-11-02 14:40:26 +01:00
Alexander Grund
38dda57f10 Remove testing with Clang 3.5 & 3.5 from GHA
Boost.SmartPtr (used by Boost.Thread) no longer builds on those old compilers.
2025-10-25 15:53:59 +02:00
Alexander Grund
a60bc8b26d Replace macos-13 by macos-15 2025-10-23 10:06:34 +02:00
Alexander Grund
f6c812537c CI: Fix listing 2025-08-27 17:17:57 +02:00
Alexander Grund
9a5dcc809f CI: Show generated docs 2025-08-27 17:01:40 +02:00
Alexander Grund
981f5804b1 GHA: Remove Windows 2019 runners 2025-07-08 19:50:10 +02:00
Alexander Grund
7ed04731c8 Allow CI runs specific to a CI provider 2025-07-08 19:22:29 +02:00
Alexander Grund
d353abb1d9 Install locale-gen if missing 2025-02-28 09:39:22 +01:00
Alexander Grund
bd9544b301 Update from Boost.CI 2025-02-28 09:33:44 +01:00
Alexander Grund
84c058fd05 GHA: Stop using Ubuntu 20.04 runner 2025-02-28 09:33:29 +01:00
Alexander Grund
c283206426 Merge pull request #257 from boostorg/fuzzing
Add fuzzing of `try_scientific_to_int` to CI
2025-01-17 19:52:24 +01:00
Alexander Grund
06a8affd2b Add fuzzing of try_scientific_to_int to CI 2025-01-16 19:51:23 +01:00
Alexander Grund
b017126235 GHA: Show output of all runs of binaries in test folder 2025-01-15 13:57:44 +01:00
Alexander Grund
806fc4351a Avoid missing coverage
Recompiling with different options/defines might remove covered lines
that no longer exist.
This is e.g. the case for the IConv code paths when compiling with ICU
and without IConv in the last test run before collecting the coverage
data.

To avoid this collect coverage data after each test run into separate
files and upload all of them.
2025-01-09 09:47:11 +01:00
Alexander Grund
219dff1584 GHA: Install 32bit ICU if compiling for 32bit 2025-01-09 09:44:13 +01:00
Alexander Grund
676ba05b82 Show output of config step and tests in GHA CI 2025-01-09 09:44:13 +01:00
Alexander Grund
1bb178a507 GHA: Use libstdc++-11 for Clang 13/14
They are not yet compatible with libstdc++-12 and up.
2025-01-09 09:44:13 +01:00
Alexander Grund
f00d128633 GHA: Remove ubuntu-toolchain ppa 2025-01-09 09:44:13 +01:00
Alexander Grund
d20388d31b Update coverage step
- Use new "collect" argument
- Fail CI on error
2025-01-09 09:44:13 +01:00
Alexander Grund
b1cf7585d4 GHA: Fix parameter for codecov action 2025-01-07 20:05:46 +01:00
Alexander Grund
9e6e9545c6 GHA: Uprev codecov action to v5 2024-12-28 10:42:51 +01:00
Alexander Grund
087dfb61d6 GHA: Remove MacOS 12 job
Runner is removed
2024-12-19 15:58:03 +01:00
Alexander Grund
bce1f9ea80 Use node from boost.io 2024-12-14 16:18:27 +01:00
Alexander Grund
675b6f2867 GHA: Update OS versions, remove containers where possible and add new compilers 2024-11-28 10:05:21 +01:00
Alexander Grund
3743c9e0da GHA: Handle removal of Node 16
Download an unofficial Node 20 build against glibc 2.17
2024-11-28 08:39:42 +01:00
Alexander Grund
dea97bc546 Set ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION
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:07:13 +02:00
Alexander Grund
fbd796a53e GHA: Add more apt keys
Those might be required.
Also revert the previously changed one.
2024-07-03 18:16:21 +02:00
Alexander Grund
43a5ff056f GHA: Update ubuntu-toolchain-r/test key 2024-07-03 13:19:33 +02:00
Alexander Grund
83ac91cd90 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 back the intermediate update
2024-07-03 13:13:27 +02:00
Alexander Grund
e18720be06 GHA: Use more reliable scripts for adding APT keys & repos 2024-07-03 12:51:49 +02:00
Alexander Grund
c28d26f083 GHA: Temporarily disable macos-14
Iconv converts invalid UTF-8 output to replacement characters instead of
returning an error such that we can skip it.
From the manual:
> The iconv function returns the number of characters converted in a non-reversible way
2024-07-03 10:11:34 +02:00
Alexander Grund
9c37216202 GHA: Use only UBSAN for macos
Adress sanitizer has a false positive in the OS library code:
> strfmon_l(buf, sizeof(buf), lreal, "%i", 1043.34) /* char buf[64];
Leads to:
 READ of size 10 at 0x6020000002bf thread T0
    #0 0x10ab9f54e in wrap_memcpy+0xf8e (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x2854e)
    #1 0x7ff803d22c6f in _strfmon+0x7f8 (libsystem_c.dylib:x86_64+0x74c6f)
    #2 0x7ff803d2323c in strfmon_l+0x9a (libsystem_c.dylib:x86_64+0x7523c)
    #3 0x10a4ead3e in void test_by_char<char>(std::__1::locale const&, _xlocale*)+0x1cce (test_posix_formatting:x86_64+0x100008d3e)

0x6020000002bf is located 0 bytes after 15-byte region [0x6020000002b0,0x6020000002bf)
allocated by thread T0 here:
    #0 0x10ac546e0 in wrap_malloc+0xa0 (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0xdd6e0)
    #1 0x7ff803d22a55 in _strfmon+0x5de (libsystem_c.dylib:x86_64+0x74a55)
    #2 0x7ff803d2323c in strfmon_l+0x9a (libsystem_c.dylib:x86_64+0x7523c)
    #3 0x10a4ead3e in void test_by_char<char>(std::__1::locale const&, _xlocale*)+0x1cce (test_posix_formatting:x86_64+0x100008d3e)
2024-07-03 10:11:32 +02:00
Alexander Grund
6901572d96 GHA: Remove macos-11 job and add macos-14
The macos-11 image was just removed and macos-14 added some time ago.
2024-07-03 09:03:02 +02:00
Alexander Grund
06b8e1ad27 GHA: Fix OSX builds
Homebrew on MacOS-11 is no longer supported.
2024-05-16 13:34:23 +02:00
Alexander Grund
941f853c5c GHA: Improve codecov.io upload usage 2024-02-07 17:40:46 +01:00
Alexander Grund
908d559f76 GHA: Update actions to use Node20 2024-02-07 17:40:46 +01:00
Alexander Grund
e9b88678c2 Update GHA CI
Remove C++03 jobs from newer compilers
Fix after GHA Ubuntu 22 image update
2023-11-06 08:41:13 +01:00
Alexander Grund
4d06360baf GHA: Run apt-get update before adding repositories 2023-10-16 07:09:38 +02:00
Alexander Grund
e6b02a48d9 Collect coverage with C++2a 2023-09-14 10:15:23 +02:00
Alexander Grund
e2283eb0f4 CI: Add clang-15 2023-09-12 15:01:45 +02:00
Alexander Grund
2ada5fe4c5 Merge pull request #184 from Flamefire/fix-icu-versions-tests
Fix icu versions tests
2023-06-21 09:45:46 +02:00
Alexander Grund
706b23cfa3 Add FUNDING.yml
[skip ci]
2023-06-20 09:44:08 +02:00
Alexander Grund
5289197aba CI: Test different ICU versions 2023-06-18 18:32:09 +02:00
Alexander Grund
50ebf53157 CI: Add job testing only ICU or only WinAPI backend on Windows
Test compile/link may fail when the WinAPI or std backend is disabled.

See #180 & #181
2023-06-18 09:41:50 +02:00
Alexander Grund
ac05f1d945 Merge branch 'develop' into fix-utf8_support-var 2023-06-14 09:34:00 +02:00
Alexander Grund
90320132db GHA-CI: Show library config on Windows CI
For debugging especially the available locales are important.
So run `show_config` with `--verbose-test` also on Windows similar to
the POSIX jobs.
2023-06-12 12:44:42 +02:00
Alexander Grund
2fbb7476cf Reconcile utf8_support handling in std backend
Document the meaning of the `utf8_support` enum and refactor/change
usages to be consistent and logical. Add comments where required.

Rename `native_with_wide` to `native` after that got free for use as
there is no `native_without_wide`.
2023-06-11 17:00:22 +02:00
Alexander Grund
c59f928088 Add tests for failing create_simple_converter and fix missing coverage 2023-05-07 19:01:45 +02:00
Alexander Grund
0cc8934dd4 CI: Run default tests (ICU&IConv) & show_config first 2023-02-28 18:06:46 +01:00