1
0
mirror of https://github.com/coturn/coturn.git synced 2025-12-25 01:41:00 +01:00

86 Commits

Author SHA1 Message Date
redraincatching
d124014428
add fuzzing to ci workflows (#1745)
allow fuzzing to be performed as part of the continuous integration.

the timing of the fuzzing can be extended, and i aim to broaden the
scope of the fuzz testing as well, since we currently only test the stun
message parser.
2025-09-05 10:37:58 -07:00
dependabot[bot]
04a8e52e09
Upgrade actions/github-script from 7 to 8 version (#1746)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-05 14:20:10 +02:00
dependabot[bot]
3cfa30552d
Upgrade actions/checkout from 4 to 5 version (#1733)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-12 13:30:02 +02:00
Kai Ren
c67a41f5ff
Upgrade vcpkg to 2025.07.25 release on MSVC CI (#1734) 2025-08-12 12:45:21 +02:00
dependabot[bot]
20761e0cd5
Upgrade actions/download-artifact from 4 to 5 version (#1731)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-06 11:22:45 +02:00
tyranron
4b69110460
Fix typo in Docker CI spec 2025-07-16 13:29:08 +03:00
tyranron
752cf2e565
Verify CHANGELOG date on Docker CI 2025-07-16 13:25:41 +03:00
redraincatching
9f3da44285
rename and dependency extraction (#1634)
rebase and refactor of [this
pr](https://github.com/coturn/coturn/pull/1400) from last year that was
never merged

rename of cmake YAML file to match others and extraction of dependencies
to already existing composite action
2025-02-20 21:12:24 -08:00
Kai Ren
1284a3f124
Explicitly install latest QEMU on CI for building Docker images (#1645) 2025-02-17 16:06:56 +01:00
tyranron
4945a42349
Decrease Docker BuildKit max-parallelism for ppc64le arch 2025-02-17 14:34:06 +02:00
Pavel Punsky
c98bb93514
Fix cmake issues detecting mongo and libsystemd on macOS (#1621)
- libsystemd does not exist on macOS - ignore it and reduce warnings
during cmake step
- mongo-c has cmake file on macOS - reusing the same code path and
reduce warnings
2024-12-27 14:52:44 -08:00
Pavel Punsky
3370eaf12d
Do not build with Ubuntu 18, use 24 (#1613)
Re-delete file that was undeleted accidentally
2024-12-15 17:37:03 -08:00
Michael Jones
c9878469fc
[BREAKING] Remove support for openssl older than 1.1.1 (#1397)
Openssl 1.1.1 is end-of-life in September 2023.
This PR removes support for versions of openssl OLDER than 1.1.1
1.1.1 should still be usable after this change is merged.

I don't see any value in supporting 1.1.1, but didn't see a reason to
purge support for 1.1.1 when there are so few checks for >= 3.0.

Note that this does also remove CI support for Ubuntu 16.04. The
official version of OpenSSL from Ubuntu for this release is listed here:
https://launchpad.net/ubuntu/+source/openssl as 1.0.2g

Since no newer releases of coturn will be backported by Canonical to
Ubuntu 16.04, anyone using Coturn on this operating system will have to
download and compile it themselves. They may build their own version of
OpenSSL if they somehow cannot upgrade to a newer version of Ubuntu.

My position is that these users should prefer to upgrade to a newer
operating system than worry about chasing newer releases of Coturn.

Co-authored-by: Pavel Punsky <eakraly@users.noreply.github.com>
2024-12-13 13:06:24 -08:00
Kai Ren
adae3dda3e
Refactor CI workflows and fix failures due to Node.js 20 (#1610, actions/checkout#1809) 2024-12-11 19:27:05 +01:00
Pavel Punsky
329cda4715
Fix cmake and prometheus test build jobs (#1608)
Some actions do not build with prometheus - adding prometheus tests
fails the jobs
cmake build tests did not run due to different target folder (while
reporting success) - now the bin folder is detected
2024-12-10 19:38:39 -08:00
Alex Gustafsson
d63704c72d
Implement custom prometheus http handler (#1591)
Implement a custom prometheus http handler in order to:

1. Support listening on a specified address as opposed to any
2. Remove the requirement on the unmaintained promhttp library

This feature comes with one limitation: if an IPv4 address is used, the
server will not listen on the IPv6-mapped address, even if IPv6 is
available. That is, dual-stacking does not work.

Solves: #1475

---------

Co-authored-by: Pavel Punsky <eakraly@users.noreply.github.com>
2024-12-10 10:28:43 -08:00
Pavel Punsky
4c2a2d568f
Install openssl-1.1.1 on amazonlinux:2 instead of openssl-1.0.1 (#1595)
In preparation to deprecation of openssl below version 1.1.1 switch to
using openssl-1.1.1 on amazonlinux:2 (where 1.0.2 is the default)

Fixes build issue for #1397
2024-11-14 16:59:31 -08:00
Michael Jones
ba0ea42914
Fix nodejs/glibc problem with old container images. (#1548)
This problem is caused by this issue:
https://github.com/actions/checkout/issues/1809

Several comments include documentation on various environment variables
to force it to use the older nodejs release still, but probably those
various workarounds will stop working eventually.
2024-08-04 15:40:17 -07:00
Pavel Punsky
c7d431a36a
Memset user_db before reading conf file, not after (#1537)
Fixes #1533 and #1534

Memsetting `turn_params.default_users_db` before reading conf file, not
after.
Because auth is read in first iteration so secret was wiped out.

# test plan
Add new test script that uses config file to setup turnserver instead of
cli arguments and confirm it works (fails without the change)
2024-07-14 16:59:26 -07:00
redraincatching
295b9cfe1a
added support for amazon linux and renamed tests.yml (#1401)
superseding changes made in pr
https://github.com/coturn/coturn/pull/1394 on request of @jonesmz

dependent on pr https://github.com/coturn/coturn/pull/1399 - uses the
composite action for dependency installation i wrote there

added YAML file for amazon linux and renames tests.yml to
ubuntu_tests.yml for clarity
2024-06-16 18:18:50 -07:00
Michael Jones
a394fb1cee
Simplify workflow for codeql (#1517) 2024-06-02 16:34:29 -07:00
Michael Jones
d1db5e590d
Include what you use (#1512)
Use the include-what-you-use program to (partially) clean up header
includes, so that only includes which are needed, and no includes that
are not needed (or at least closer to that ideal) are done.

For a c-language project, the build-time improvements from this change
is minimal. This would have a much bigger impact on a C++ project than a
C-project for build times.

So for coturn, this change is mostly intended to just provide
consistency and make it easier to locate weird issues like strange
dependencies, and unnecessary connections between code.
2024-06-01 18:13:08 -07:00
Michael Jones
ebf7587aaf
Remove deprecated macos-11, add macos-13 and macos-14 (#1511) 2024-06-01 18:10:55 -07:00
Michael Jones
6f82083ea3
Run all of the CI except for Docker builds on any change (#1415)
I'm having trouble testing changes in my own fork because many of the CI
workflows are only set to build on a pull request.

Better to just build on any commit.

I've left the docker builds as they are.
2024-05-27 13:50:43 -07:00
Michael Jones
544382f313
Fix mingw and MSVC ci build (#1491) 2024-05-27 13:43:40 -07:00
Michael Jones
525550ab86
Always run lint, regardless of branch (#1492)
Someone working on a branch in their own fork won't see the lint running
on their github-actions CI until they open a pull request.

It'd be much easier to ensure changes being worked on are going to pass
the linter if the linter runs before the last step of opening the PR.
2024-05-26 18:27:39 -07:00
redraincatching
e96f22ab71
workflow tidying (#1396)
Normalisation of some of the workflow files
2024-04-09 23:18:03 +02:00
dependabot[bot]
9a79c813e3
Upgrade softprops/action-gh-release GitHub Action from 1 to 2 version (#1449) 2024-03-11 11:40:29 +01:00
redraincatching
294a2b69a0
ubuntu build dependencies extracted to composite actions (#1399)
superseding changes made in pr #1394 on request of @jonesmz 

extracted ubuntu build dependencies into a composite action for
maintainability reasons
2024-03-02 13:45:24 -08:00
Michael Jones
da332ed9e7
Add the InsertBraces command for clang-format to ensure that all conditionals always have braces (#1408)
- Why? Because code where conditionals lack braces is much harder to read, and prone to indentation confusion.
- How? Just added an extra flag to .clang-format and re-ran clang-format on all the files.

I also moved .clang-format up to the top level of the repo so that it can be applied to the fuzz targets as well.
2024-01-27 16:38:40 -08:00
Pavel Punsky
168305494d
Exclude testing alpine Docker image on s390x arch on CI due to QEMU emulation problems (#1395, #1390)
Co-authored-by: Kai Ren <tyranron@gmail.com>
Co-authored-by: Michael Jones <jonesmz@users.noreply.github.com>
2024-01-24 13:08:08 +01:00
dependabot[bot]
8aa827acd9
Bump actions/cache from 3 to 4 (#1385)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-17 22:15:38 -08:00
dependabot[bot]
9a8408725a
Bump github/codeql-action from 2 to 3 (#1386)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-17 22:14:57 -08:00
Michael Jones
72ad1f01d1
Add clang-tidy, include-what-you-use, and msvc-analyzer github actions (#1363) 2024-01-16 19:49:30 -08:00
Pavel Punsky
1f2bb51279
Update lukka/run-vcpkg@11 (#1374)
- update lukka/run-vcpkg@11
- vcpkg 2023-11-16 Release (new version was required anyway but taking somewhat newer but not latest)
- lukka/run-vcpkg@11 documentation states cache is not needed so deleted anything related to caching

Test plan: edited yaml file to run msvc job on PR and confirmed that it passes successfully
2024-01-15 19:06:31 -08:00
Michael Jones
8f2a482ad9
Add github action that runs tests with compiler sanitizers (#1370) 2024-01-15 18:26:31 -08:00
dependabot[bot]
1c7171b74a
Upgrade github/codeql-action from 2 to 3 version (#1348)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-15 13:27:53 +01:00
dependabot[bot]
4134344838
Upgrade actions/download-artifact from 3 to 4 version (#1350)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-15 12:48:28 +01:00
dependabot[bot]
a437bcbc12
Upgrade actions/upload-artifact from 3 to 4 version (#1349)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-15 12:17:41 +01:00
Kang Lin
294f897ccd
CMake: find prometheus(fix #1304) (#1315)
fix #1304
2023-11-22 20:34:53 -08:00
Kang Lin
c7a18c6296
Fix: run cmake.yml in any github action (#1320) 2023-11-22 20:34:13 -08:00
dependabot[bot]
0a95c8435a
Upgrade actions/github-script from 6 to 7 version (#1316)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-14 14:37:05 +01:00
tyranron
e7c1551de1
Try test s390x platform Docker images in MacOS on CI 2023-10-05 14:25:26 +03:00
tyranron
66bea108a1
Try 6.1.0 QEMU version for Docker tests on CI 2023-10-05 13:21:34 +03:00
tyranron
078bc829bd
Try edge QEMU version for Docker tests on CI 2023-10-05 13:03:07 +03:00
tyranron
a68c57caac
Try BuildKit QEMU auto-emulation on CI for Docker images 2023-10-05 12:45:25 +03:00
tyranron
213ecd3388
Try build s390x platform Docker images in MacOS on CI 2023-10-04 16:58:52 +03:00
Gustavo Garcia
4ddca0b0b9
Fix ubuntu 16 build with GH action checkout version to v3 (#1281)
Co-authored-by: Gustavo Garcia <gustavogb@mail.com>
2023-10-03 20:44:31 -07:00
dependabot[bot]
17e3b81a36
Upgrade docker/setup-qemu-action to 3 version (#1265)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-13 14:43:53 +02:00
dependabot[bot]
70f93468ad
Upgrade docker/setup-buildx-action to 3 version (#1264)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-13 14:13:17 +02:00