Commit Graph

60 Commits

Author SHA1 Message Date
Vadim Zeitlin
1bf4734cda Update actions/checkout version to 5 in GitHub CI workflows
v4 will stop working soon (on 2026-06-02) as it's based on Node 20.
2026-03-16 21:47:58 +01:00
Vadim Zeitlin
f1ece53e60 Use C++20 for one of the CI builds
Use Valgrind build for testing this.
2026-03-16 00:31:50 +01:00
Vadim Zeitlin
547a62eec1 Add fmt library as submodule and use it in the tests
Replace existing use of std::cout and std::cerr with fmt::print[ln]():
this is simpler and more convenient and also faster to compile.

Also configure all CI jobs to clone submodules, as fmt submodule is
required now.
2026-01-14 23:40:06 +01:00
Vadim Zeitlin
593196abba Shorten the Unix GitHub Actions workflow name too
Make it more consistent with "Windows CI" workflow.
2025-06-07 19:04:37 +02:00
Vadim Zeitlin
b7d0b7af81 Make Windows GitHub Actions workflow work
Fix the workflow which was added in master to make it possible to use
it, but which didn't work yet.

Build SOCI under Windows using MSVC and run the tests that we can easily
run in the GitHub Actions environment (to run the other ones we would
need to set up PostgreSQL ODBC drivers and MySQL and SQL Server
databases ourselves).
2025-06-07 18:55:15 +02:00
Vadim Zeitlin
0e897d1afc Add workflow for running Windows CI builds on GitHub
This should be much faster than running them on AppVeyor CI.
2025-06-06 19:34:12 +02:00
Robert Adam
8b2cc353bc CI: test MariaDB 2025-02-27 19:15:55 +01:00
Robert Adam
b23bdfe804 Downgrade Oracle CI to Ubuntu 22.04
Some library is said to be missing when running on 24.04. Might be an
artifact of the specific container image we're using.
2025-02-07 18:57:23 +01:00
Robert Adam
047222ac64 CI: Upgrade to Ubuntu 24.04 2025-02-06 19:23:03 +01:00
Robert Adam
0f71bf5e27 Remove redundant CI builds 2025-02-06 19:20:42 +01:00
Robert Adam
ba4dd288c5 Use non-unity builds for shared libs to also CI test regular builds 2025-02-06 19:20:17 +01:00
Robert Adam
b5c70b2124 Replace build matrix with explicit list 2025-02-06 18:40:02 +01:00
Robert Adam
17c0884e24 Simplify build matrix 2025-01-03 17:47:09 +01:00
Robert Adam
0709bb273e Give acion runs better names 2025-01-03 17:34:56 +01:00
Robert Adam
1d7b086f73 Use standard checkout action 2025-01-03 16:37:21 +01:00
Robert Adam
c88da3b62c Merge remote-tracking branch 'upstream/master' into revamp-cmake 2025-01-03 16:05:52 +01:00
Vadim Zeitlin
115663a2ff Ensure that we stop on error when using UBSAN
Otherwise the errors reported by it could remain unnoticed, as happened
with the UB detected in Oracle backend.
2024-11-09 23:34:59 +01:00
Vadim Zeitlin
80128a18d1 Enable UBSAN for all non-Ubuntu 18.04 CI builds
UBSAN gives nonsensical errors for the ODBC job running under Ubuntu
18.04, e.g. it complains that

src/core/session.cpp:246:16: runtime error: member call on address
0x607000000250 which does not point to an object of type
'session_backend'
1: 0x607000000250: note: object is of type 'soci::odbc_session_backend'

which doesn't make any sense because odbc_session_backend is an object
of type session_backend. But apparently something is broken in this
compiler version, so disable UBSAN for this job for now.
2024-10-16 17:11:43 +02:00
Vadim Zeitlin
90f1d3c7ef Allow enabling ssh server for GitHub Actions CI builds
Allow enabling tmate when launching the workflow manually using
workflow_dispatch trigger.
2024-10-16 15:53:28 +02:00
Vadim Zeitlin
698495c33b Install PostgreSQL ourselves in macOS CI workflow
It used to be part of macos-12 image but is not present in the later
ones for whatever reason.

Installing postgresql formula using brew already initializes the
database cluster but does it in a non-default directory, so adjust
PGDATA definition accordingly and remove "pg_ctl init" which is not
needed any longer.
2024-10-16 15:50:56 +02:00
Vadim Zeitlin
214fae86e0 Run macOS CI jobs under macOS 14
The currently used macOS 12 images are deprecated and will cease to be
available on GitHub soon.
2024-10-10 18:29:35 +02:00
Robert Adam
e2c1a5302f Disable Boost bindings on macOS CI 2024-08-31 16:25:38 +02:00
Robert Adam
dd5e3dd972 Build shared and static libs separately 2024-08-31 16:24:36 +02:00
Robert Adam
0e5c799acf CI: ODBC now also uses the default runner
Fixes #1005
2024-08-31 16:22:13 +02:00
Vadim Zeitlin
4707520bf7 Run macOS CI jobs under macOS 12
macOS 11 is not supported by GitHub CI runners any longer.
2024-08-19 13:53:03 +02:00
Vadim Zeitlin
1b3bd79d60 Replace the use of actions/checkout with a manual checkout
v3 of this action triggers deprecation warnings and will stop working
soon, while v4 doesn't work under Ubuntu 18.04 which we use for ODBC
testing due to https://github.com/actions/checkout/issues/1442

Closes #1132.
2024-03-20 03:49:34 +01:00
Vadim Zeitlin
a02f9a8f13 Update checkout action to use node 20
The previous version of the action, using node 16, is deprecated now and
will stop working soon.
2024-03-19 21:43:39 +01:00
Vadim Zeitlin
4a7b72ea53 Disable GitHub certificate check under Ubuntu 18.04
wget doesn't recognize it for some reason under this old OS, so just
disable it to be able to download mold there.
2023-12-11 17:21:18 +01:00
Vadim Zeitlin
f8888ca4c2 Run ODBC build in Ubuntu 18.04 container
Ubuntu 18.04 runner is not available any more, so put this build into a
container instead.
2023-04-18 17:29:25 +02:00
Vadim Zeitlin
6af2466ee3 Disable automatic execution of CodeQL workflow
It's not really clear if it's useful at all, but it's absolutely clear
that it's not worth spending time dealing with the spurious errors in it
that happen almost every time now, so keep it, but don't run it
automatically.
2022-10-28 00:14:30 +02:00
Vadim Zeitlin
c5adff3925 Add CI build using C++17
This is needed at least to run C++17-only tests.

See #1001.
2022-10-28 00:09:44 +02:00
Vadim Zeitlin
fe620194f0 Switch to macOS 11 environment for Mac CI builds
macOS 10.15 is deprecated by GitHub, see
https://github.com/actions/virtual-environments/issues/5583
2022-10-27 23:26:31 +02:00
Vadim Zeitlin
21517d6eb2 Temporarily return to using Ubuntu 18.04 for ODBC tests
Running them under 22.04 results in memory leak reports and build
failure.
2022-10-27 23:26:31 +02:00
Vadim Zeitlin
7c7f65539f Run Valgrind CI job under Ubuntu 22.04 too 2022-10-27 23:26:31 +02:00
Vadim Zeitlin
db707402c4 Run CI jobs under Ubuntu 22.04 by default
Ubuntu 18.04 runner is being deprecated and will be removed soon, so
don't use it by default.

See #1005.
2022-10-27 23:25:58 +02:00
Vadim Zeitlin
d83fc827bd Update used actions to Node 16-based versions
See

- https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/
- https://github.blog/changelog/2022-04-27-code-scanning-deprecation-of-codeql-action-v1/
2022-10-27 18:30:46 +02:00
Vadim Zeitlin
9ecda7e5af Remove SOCI_CI_PACKAGES and always install CMake under Linux
It doesn't make much sense to configure this outside of the installation
script when we can already just install it from the script itself.

No real changes.
2022-10-27 18:27:01 +02:00
Vadim Zeitlin
769e0fdfdc Remove CI builds explicitly using C++98
Don't set CMAKE_CXX_STANDARD in the environment, it will be set in CMake
makefiles themselves soon.
2022-09-18 17:28:57 +02:00
Vadim Zeitlin
066c5d8d76 Test building under FreeBSD using Cirrus CI 2022-06-22 00:58:41 +02:00
Lukas Zanner
17e8e40d37 Add example build to CI 2022-01-13 21:55:24 +01:00
Vadim Zeitlin
4a76b849e9 Ignore changes to CircleCI config in GitHub CI workflow
Changes to CircleCI-specific files can't affect GitHub CI.
2021-10-11 19:37:03 +02:00
Ilya Sinitsyn
731670c040 Disable the fast unwinder for ASAN 2021-10-11 21:42:10 +07:00
Ilya Sinitsyn
3cfb257d51 Use Ubuntu 18.04 in github actions 2021-10-11 21:41:36 +07:00
Vadim Zeitlin
ea2912b0e1 Merge branch 'minor-ci-fixes'
Some minor improvements to the CI scripts, no real changes.
2021-07-10 11:51:50 +02:00
Vadim Zeitlin
b41c0bad46 Add simple CodeQL analysis workflow
Try using CodeQL with SOCI.

As a side effect, also add "all" pseudo-backend for building everything.
2021-07-10 11:51:17 +02:00
Vadim Zeitlin
0d7341ca73 Remove redundant SOCI_SOURCE_DIR assignment
There is no need to set it again to the same value after it had been
already set just above.
2021-07-10 11:48:22 +02:00
Vadim Zeitlin
bae8d6b587 Goodbye Travis
Unfortunately, and despite continued statements to the contrary, Travis
is not usable for open source projects any longer as this involves
constantly nagging Travis support to manually top up the project credit,
which is just infeasible, so we have no choice but to stop using it.

It was nice while it lasted, thanks for all the fish.
2021-07-06 15:30:17 +02:00
Vadim Zeitlin
41f02096a4 Run GitHub CI workflow on the release branches too
Don't use it for PRs there, but do run it for pushes.
2021-04-07 21:29:49 +02:00
Vadim Zeitlin
e950401c65 Add macOS build job to GitHub Actions CI
This is useful at least for PostgreSQL which is regularly broken due to
a conflict of "session" with the system headers.
2021-03-19 19:17:21 +01:00
Vadim Zeitlin
f481d472d3 Replace using PostgreSQL docker container with native server
"services" can't be used with macOS runners and there is no way to limit
them to Linux runners only (i.e. "if:" is not supported here), so we'd
have to use 2 different jobs and duplicate all the other steps if we
wanted to continue using them.

Instead, just install PostgreSQL manually under Linux. This also means
that it isn't done for the builds that don't need it uselessly any more.
2021-03-19 19:17:21 +01:00