Commit Graph
16 Commits
Author SHA1 Message Date
Mads OdgaardandGitHub c5784ca815 Replace import Foundation with FoundationEssentials (#897)
Replaces all the foundation imports.

One issue is that `HTTPClient.init?(httpsURLWithSocketPath socketPath:
String, uri: String = "/")` uses `addingPercentEncoding()` from
Foundation. So instead, we use a pure Swift impl. that does the same.

We also need to disable default traits from `swift-configuration` to
prevent linking Foundation, because the `JSON` trait does that.

This also adds a linkage test to prevent regressions to CI.
2026-03-13 13:23:14 +00:00
Rick Newton-RogersandGitHub 101258d831 switch from main to 0.0.7 for swiftlang workflows (#889)
Motivation

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

Modifications

* Replace `@main` with `@0.0.7` in all workflow files.

Result

* Workflow files reference a pinned version of
`swiftlang/github-workflows`.
2026-02-20 11:52:36 +01:00
Rick Newton-RogersandGitHub b2ae84569c Add explicit read permissions to workflows (#867)
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:43:10 +00:00
Rick Newton-RogersandGitHub 31c8b047b5 Enable Swift 6.2 jobs in CI (#859)
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 14:28:49 +01:00
RaphaelandGitHub 64021b3066 Enable release mode builds (#850)
### 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:55:42 +01:00
George BarnettandGitHub 20216dfe9d Drop support for Swift 5.9 (#845) 2025-05-22 11:56:34 +01:00
George BarnettandGitHub 6023598316 Fix 5.9 build (#844)
Motivation:

An oversight in 373862a meant that 5.9 wasn't actually dropped which
means that the use of 'nonisolated(unsafe)' in 0e715a27 broke users of
5.9.

Modifications:

- Add back a 5.9 path

Result:

- Builds on 5.9
- Resolves #843
2025-05-22 11:07:10 +01:00
George BarnettandGitHub 3b265e6a00 Enable warnings as errors in CI (#842)
Motivation:

Now that strict concurrency has been adopted the AHC should avoid
regressing by treating all warnings as errors in CI.

Modifications:

- Treat warnings as errors in CI

Result:

Stricter CI
2025-05-08 10:51:33 +01:00
George BarnettandGitHub 086524fd8a Fix sendability issues in the connection pool (#833)
Motivation:

The connection pool holds much of the low level logic in AHC. We should
fix its sendability issues before moving to higher levels.

Modifications:

- Make HTTP1ConnectionDelegate and HTTP2Delegate sendable, this requires
passing IDs rather than connections to their methods
- Make HTTPConnectionRequester sendable and have its methods take
Sendable views of the HTTP1Connection and HTTP2Connection types
- Add sendable views to HTTP1Connection and HTTP2Connection
- Mark HTTP1Connection and HTTP2Connection as not sendable
- Make HTTPRequestExecutor and HTTPExecutableRequest sendable
- Update tests

Result:

Connection pool has stricter sendability requirements
2025-04-28 15:33:38 +01:00
George BarnettandGitHub 373862aa09 Drop support for Swift 5.9 (#830)
Motivation:

Now that Swift 6.1 has been released, Swift 5.9 has dropped out of the
support window.

Modifications:

- Bumpt tools versions to 5.9
- Disable 5.9 workflows

Result:

5.9 is no longer supported
2025-04-25 11:12:46 +00:00
Rick Newton-RogersandGitHub 16886fd35d Enable Swift 6.1 jobs in CI (#827)
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:51:09 +01:00
Rick Newton-RogersandGitHub 01908f4f53 Add static SDK CI workflow (#823)
Add static SDK CI workflow which runs on commits to PRs, merges to main
and daily on main.
2025-03-14 10:43:01 +00:00
Rick Newton-RogersandGitHub 2dbcdf2d4f Rename nightly_6_1 params to nightly_next (#820)
Rename nightly_6_1 params to nightly_next; see
https://github.com/apple/swift-nio/pull/3122
2025-03-03 14:51:02 +00:00
Rick Newton-RogersandGitHub 81384de61c CI use 6.1 nightlies (#805)
CI use 6.1 nightlies now that Swift development is happening in the 6.1
branch
2025-01-30 09:43:36 +00:00
Rick Newton-RogersandGitHub bdaa3b1835 remove unused Swift 6 language mode workflow (#783)
remove unused Swift 6 language mode workflow
2024-11-15 10:08:02 +00:00
Rick Newton-RogersandGitHub c621142327 Adopt GitHub actions (#780)
Migrate CI to use GitHub Actions.

### Motivation:

To migrate to GitHub actions and centralised infrastructure.

### Modifications:

Changes of note:
* Adopt swift-format using rules from SwiftNIO.
* Remove scripts and docker files which are no longer needed.
* Disabled warnings-as-errors on Swift 6.0 CI pipelines for now.

### Result:

Feature parity with old CI.
2024-10-29 15:01:46 +00:00