22 Commits
Author SHA1 Message Date
Cory Benfield af9a71fe27 Add CMake support to SwiftNIO SSL (#617)
Motivation:

As part of our ongoing work to enable more use of these technologies in
the toolchain, add support for CMake to SwiftNIO SSL.

Modifications:

- Added CI for cmake.
- Added cmakelists scaffolding.

Result:

Can build SwiftNIO SSL with CMake.
2026-11-24 12:48:34 +01:00
Rafael Cepeda 73f8803df4 Enable x25519_MLKEM768 by default (#582)
Default `TLSConfiguration.curves` is now [`.x25519_MLKEM768`, `.x25519`,
`.secp384r1`], enabling post-quantum hybrid key exchange out of the box.
Users can still set curves to nil to fall back to BoringSSL's built-in
curve list, or override with any custom set.

Updated `quantum-secure-tls.md` to reflect that PQ is enabled by default
and document how to customise or disable it.
2026-06-01 17:24:41 +01:00
Rick Newton-Rogers 8e3d34d5b6 Migrate macOS build argument overrides to Swift version inputs (#581)
Motivation

* The shared `macos_tests.yml` workflow no longer accepts
  `xcode_16_2_build_arguments_override` and the `xcode_16_3` input is a
  no-op. Passing the removed input causes CI to fail.
* Older Xcodes are being removed from the runners; Swift version inputs
  are the replacement.

Modifications

* Replace `xcode_16_2/16_3_build_arguments_override` with
  `swift_6_1/6_2/6_3_build_arguments_override` carrying the same
  `-Xswiftc -Xfrontend -Xswiftc -require-explicit-sendable` value.

Result

* macOS CI passes again using the Swift version inputs.
2026-05-15 11:30:30 +02:00
Rick Newton-RogersandGeorge Barnett 3f337058cc Drop Swift 6.0 (#576)
Motivation:

Swift 6.0 is no longer supported, we should bump the tools version and
remove it from our CI.

Modifications:

* Bump the Swift tools version to Swift 6.1
* Remove Swift 6.0 jobs where appropriate in main.yml, pull_request.yml

Result:

Code reflects our support window.

---------

Co-authored-by: George Barnett <gbarnett@apple.com>
2026-04-07 12:07:47 +00:00
Rick Newton-Rogers fad35ae01f Enable Swift 6.3 jobs in CI (#574)
Motivation:

Swift 6.3 has been released, we should add it to our CI coverage.

Modifications:

Add additional Swift 6.3 jobs where appropriate in main.yml,
pull_request.yml

Result:

Improved test coverage.
2026-04-01 15:34:34 +01:00
Rick Newton-Rogers a0140bf29e update actions/checkout from v4 to v6 (#572)
Motivation

* Following [GitHub's
announcement](https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/),
Node 20 is being deprecated and runners will begin using Node 24 by
default starting March 4th, 2026. Node 20 will reach end-of-life in
April 2026.

Modifications

* Upgrade GitHub Actions to their latest versions to ensure
compatibility with Node 24.
* Replace `actions/checkout@v4` with `actions/checkout@v6` in all
workflow files.

Result

* Workflow files reference `actions/checkout@v6`.
2026-03-02 13:26:09 +00:00
Rick Newton-Rogers 0d3c933ee2 switch from main to 0.0.7 for swiftlang workflows (#570)
Motivation

* `@main` references to `swiftlang/github-workflows` are deprecated.

Modifications

* Replace `@main` with `@0.0.7` in all workflow files.
* Update benchmark thresholds so CI passes. These seemed to have the
wrong filenames so I'm not sure how it ever worked.
* Add tolerance to benchmarks in line with NIO

Result

* Workflow files reference a pinned version of
`swiftlang/github-workflows`.
2026-02-27 14:11:55 +00:00
Rick Newton-Rogers 8c179eebff Add explicit read permissions to workflows (#566)
Motivation:

* More secure GitHub Actions workflows

Modifications:

Add explicit 'contents: read' permissions to workflows that did not have
explicit permissions defined. This follows GitHub Actions security best
practices by limiting the default GITHUB_TOKEN permissions.

Result:

An extra layer of security.
2025-10-30 16:51:53 +00:00
Cory Benfield c1bcde58f6 Revert to @_implementationOnly import (#562)
Motivation:

Unfortunately, `internal import` doesn't do implementation-hiding in the
build system. This means that the C header files do become visible to
all dependencies, which can cause problems when the ssl.h headers from
elsewhere are included.

Modifications:

Revert to `@_implementationOnly` imports.

Result:

Better builds, unfortunately more warnings
2025-10-28 15:52:53 +00:00
Rick Newton-Rogers b2b043a881 Enable Swift 6.2 jobs in CI (#558)
Motivation:

Swift 6.2 has been released, we should add it to our CI coverage.

Modifications:

Add additional Swift 6.2 jobs where appropriate in main.yml,
pull_request.yml

Result:

Improved test coverage.
2025-09-22 12:45:52 +00:00
Raphael ab2784eb0f Enable release mode builds (#552)
### Motivation:

Some errors do not show up in debug builds. Enabling release mode builds
improves the CI coverage.

### Modifications:

Enable release mode builds for pull requests and scheduled builds on
main.

### Result:

Improved CI coverage.
2025-07-30 08:09:20 +00:00
Rafael Cepeda f64263a41f Enabled -require-explicit-sendable compiler flag (#549)
Enabled -require-explicit-sendable compiler flag and fixed the errors
highlighted by the compiler.
2025-07-10 18:49:30 +01:00
Rick Newton-Rogers fe415631b1 Add static SDK CI workflow (#515)
Add static SDK CI workflow which runs on commits to PRs, merges to main
and daily on main.
2025-06-26 11:56:53 +01:00
Rick Newton-Rogers 4b38f35946 Drop Swift 5.9 (#536)
Motivation:

Swift 5.9 is no longer supported, we should bump the tools version and
remove it from our CI.

Modifications:

* Bump the Swift tools version to Swift 5.10
* Remove Swift 5.9 jobs where appropriate in main.yml, pull_request.yml

Result:

Code reflects our support window.
2025-05-05 12:13:41 +01:00
Rick Newton-Rogers e5f59aeca6 Enable Swift 6.1 jobs in CI (#531)
Motivation:

Swift 6.1 has been released, we should add it to our CI coverage.

Modifications:

Add additional Swift 6.1 jobs where appropriate in main.yml,
pull_request.yml

Result:

Improved test coverage.
2025-04-14 10:39:35 +01:00
Rick Newton-Rogers fa7b4a5621 Switch integration tests to newer Swift test matrix (#519)
### Motivation:

To remove all uses of the older workflow so it can be removed to
simplify the workflows.

### Modifications:

* Switch integration tests to use the newer Swift test matrix workflow,
`swift_test_matrix.yml`

### Result:

This should make no difference to the running of integration tests.
2025-04-10 10:20:55 +01:00
Rick Newton-Rogers 71d303922f Enable macOS CI on pull requests (#517)
Motivation:

* Improve test coverage

Modifications:

Enable macOS CI to be run on pull request commits and make the use of
the nightly runner pool for main.yml jobs explicit.

Result:

Improved test coverage.
2025-04-01 17:42:30 +01:00
Rick Newton-Rogers 46b12f0a9b Rename nightly_6_1 params to nightly_next (#510)
Rename nightly_6_1 params to nightly_next; see
https://github.com/apple/swift-nio/pull/3122
2025-03-03 14:37:17 +00:00
Rick Newton-RogersandCory Benfield b4a26ae126 CI use 6.1 nightlies (#504)
CI use 6.1 nightlies now that Swift development is happening in the 6.1
branch

Co-authored-by: Cory Benfield <lukasa@apple.com>
2025-01-30 14:53:03 +00:00
Rick Newton-Rogers 5f317df0d2 remove unused Swift 6 language mode workflow (#491)
remove unused Swift 6 language mode workflow
2024-11-15 09:57:07 +00:00
Rick Newton-Rogers 75e5a978e8 Switch allocation benchmarks to GHA (#488)
### Motivation:

This will allow us to decommission the old CI hooks.

### Modifications:

* Migrate the existing tests to use the package-benchmark framework.
* Delete the obsolete integration tests
* Remove allocations test references from the docker files.

### Result:

Allocation counts are checked using GitHub Actions.
2024-10-25 16:17:41 +01:00
Rick Newton-Rogers 61cfaf9798 Migrate to GitHub Actions (#487)
Migrate CI to use GitHub Actions.

### Motivation:

To migrate to GitHub actions and centralised infrastructure.

### Modifications:

Changes of note:
* Disable warnings-as-errors until issues with recent NIO changes are
resolved
* Adopt swift-format using rules from SwiftNIO
* Remove scripts which are no longer needed

### Result:

Feature parity with old CI minus allocation tests which remain on the
old CI.
2024-10-25 09:32:23 +01:00