27 Commits
Author SHA1 Message Date
Charles ZablitandCory Benfield ac5e08be49 [CMake] Require CMake 3.29 and drop the CMP0157 checks (#325)
Follow-up to #324: require CMake 3.29 instead of checking for CMP0157,
and leave `CMAKE_Swift_COMPILATION_MODE` to the caller. The toolchain
build passes it (swiftlang/swift#94066).

Tracking: swiftlang/swift#93995

assisted by Claude

Co-authored-by: Cory Benfield <lukasa@apple.com>
2026-11-20 19:02:07 +00:00
Rick Newton-Rogers a12bcbc0df Migrate macOS build argument overrides to Swift version inputs (#298)
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:48 +02:00
Rick Newton-Rogers 5aa1c0d1bc Drop Swift 6.0 (#294)
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.
2026-04-08 15:08:50 +01:00
Rick Newton-Rogers 1f8592e508 Enable Swift 6.3 jobs in CI (#293)
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 13:53:28 +01:00
Rick Newton-Rogers 2ea3d05c75 update actions/checkout from v4 to v6 (#291)
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:32:40 +00:00
Rick Newton-Rogers 0ad242d196 switch from main to 0.0.7 for swiftlang workflows (#290)
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 14:50:51 +00:00
aryan-25 66a8512c4e Drop Swift 5.10 (#283)
Motivation:

Swift 5.10 is no longer supported. We should raise the minimum Swift
tools version to 6.0, fix consequent build warnings/errors, and remove
5.10 CI jobs.

Modifications:
- Raised the Swift tools version to 6.0 in both the main
`swift-certificates` package and the Benchmark package.
- Removed the now redundant `StrictConcurrency=complete` flag in
`swift-certificates`' `Package.swift`.
- Removed 5.10 CI job arguments.
- Removed 5.10 benchmark thresholds.
- Added an explicit type annotation to the `package-benchmark` setup
closure to address a build error.
- Updated `VerifierBenchmark` to use newer, non-deprecated
`RFC5280Policy` initializers (as a result of #276).
- Updated a test case in `Tests/X509Tests/PEMTests.swift` to no longer
use a deprecated `String` initializer.

Result:

Code reflects our support window.
2025-11-18 14:55:30 +00:00
Melissa Kilby ecf8cee493 chore: restrict GitHub workflow permissions - future-proof (#278)
See https://github.com/swiftlang/github-workflows/issues/167 for
additional context

This approach aligns with security best practices, as detailed in the
following documentation:

-
https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions
-
https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#defining-access-for-the-github_token-scopes
-
https://openssf.org/blog/2024/08/12/mitigating-attack-vectors-in-github-workflows/


The default GITHUB_TOKEN permissions are defined at the repository
level. This PR modifies the workflow-level overrides to conform to
OpenSSF best practices -> defense in depth.

Allow me to quote OpenSSF:

https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

> The highest score is awarded when the permissions definitions in each
workflow's yaml file are set as read-only at the top level and the
required write permissions are declared at the run-level.”

> Remediation steps
> - Set top-level permissions as read-all or contents: read as described
in GitHub's documentation.
> - Set any required write permissions at the job-level. Only set the
permissions required for that job; do not set permissions: write-all at
the job level.


Compare to the LLVM project:

Top-level: contents read, e.g.
https://github.com/swiftlang/llvm-project/blob/next/.github/workflows/build-ci-container-windows.yml#L3-L4
-> this makes it future-proof

Job-level: Allow write permissions as needed, e.g.
https://github.com/swiftlang/llvm-project/blob/next/.github/workflows/build-ci-container-windows.yml#L53-L58

Signed-off-by: Melissa Kilby <mkilby@apple.com>
2025-10-20 08:50:08 +01:00
Rick Newton-Rogers a556ec262c Enable Swift 6.2 jobs in CI (#274)
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 13:37:43 +00:00
Rafael Cepeda c059d9c9d0 Explicit sendable changes (#265)
Performed the necessary changes to enable compiler flag
`-require-explicit-sendable`. Also enabled this flag in macOS CI.
2025-07-31 15:35:39 +01:00
Raphael 6911702e11 Enable release mode builds (#270)
### 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 15:29:56 +00:00
Rick Newton-Rogers e7db922740 Drop Swift 5.9 (#250)
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:21:20 +01:00
Rick Newton-Rogers b84149fc0e Enable Swift 6.1 jobs in CI (#246)
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:47:13 +01:00
Gus Cairo 1705c7bce4 Remove warnings as errors from 5.9 main runs (#245)
See https://github.com/apple/swift-certificates/pull/243
2025-04-08 12:56:29 +00:00
Gus Cairo 81563a3f4e Remove warnings as errors from 5.9 CI (#243)
Warnings as errors is enabled on 5.9, but this is preventing us from
adding visionOS as a platform in our availability guards. Since we're
not regressing anything by doing this, and we're close to dropping
support for 5.9 anyways, we should remove this setting so that we can
support visionOS.
2025-04-08 13:43:40 +01:00
Rick Newton-Rogers 12188b2dc6 Enable macOS CI on pull requests (#240)
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:40:37 +01:00
Rick Newton-Rogers fc2d54cf0a Enable macOS CI on merge to main and daily timer (#238)
Enable macOS CI on merge to main and daily timer

### Motivation:

* Improve test coverage
* Check test pass/fail status
* Monitor CI throughput

### Modifications:

Enable macOS CI to be run on all merges to main and on a daily timer.

### Result:

Improved test coverage run out-of-band at the moment so we can get a
feeling for if any changes need to be made in the repo or in the CI
pipelines to ensure timely and stable checks.
2025-03-26 16:03:00 +00:00
Rick Newton-Rogers 04113b4b6a Use centralized CMake checks (#235)
### Motivation:

We now have centrally-hosted CMake checks in the NIO repository which we
should use to reduce maintenance. The new checks also increase coverage
by performing a build with CMake as part of the checks.

### Modifications:

* Use the new workflow
* Commit formatting changes in the CMakeLists files from the new script
* Document how to update the CMakeLists files
* Remove the obsolete scripts

### Result:

Better CI coverage.
2025-03-17 11:17:06 +00:00
Rick Newton-RogersandCory Benfield 1d394dbc80 Add static SDK CI workflow (#234)
Add static SDK CI workflow which runs on commits to PRs, merges to main
and daily on main.

---------

Co-authored-by: Cory Benfield <lukasa@apple.com>
2025-03-14 11:22:52 +00:00
Rick Newton-Rogers a09d77ed59 Rename nightly_6_1 params to nightly_next (#228)
Rename nightly_6_1 params to nightly_next; see
https://github.com/apple/swift-nio/pull/3122
2025-03-03 14:49:31 +00:00
Rick Newton-Rogers 197ba89b06 CI use 6.1 nightlies (#225)
CI use 6.1 nightlies now that Swift development is happening in the 6.1
branch
2025-01-30 09:44:39 +00:00
Franz Busch 608cef1b99 Update release.yml (#216)
Update the release.yml file with the latest label changes
2024-12-18 14:15:35 +01:00
Clinton Nkwocha 5fd8063331 Enable strict concurrency (#213)
Motivation:

To catch potential data races at build time.

Modifications:

- Bump Swift tools version from 5.8 to 5.9 in Package.swift.
- Enable strict concurrency in Package.swift.
- Adjust the documentation section on the supported Swift versions.
- Implement minor fixes for the surfaced strict concurrency warnings.
- Add `-require-explicit-sendable` to the 6.0, nightly 6.0 and nightly
main CI checks.

Result:

Strict concurrency adoption.
2024-12-13 18:24:01 +00:00
Franz Busch 14e5b05d67 Aligning semantic version label check name (#210) 2024-11-28 12:54:14 +01:00
Rick Newton-Rogers 3705c35d9f unify scheduled and main yamls (#208) 2024-11-15 09:47:21 +00:00
Franz Busch c0b6a47ffe [CI] Adopt GitHub actions (#193) 2024-10-21 16:01:05 +01:00
Franz Busch a7c8875b9f Add release.yml (#191) 2024-09-06 13:10:11 +01:00