Commit Graph
36 Commits
Author SHA1 Message Date
Franz Busch c90e69406b Fix Xcode 26.2 CI copy and paste error (#3499) 2026-01-28 16:32:30 +00:00
Franz Busch d1aaf4371a Add support for Xcode 26.2 (#3498)
Adds the required new inputs to the macOS tests and benchmark reusable
workflows
2026-01-28 16:47:02 +01:00
dependabot[bot] b2a14468d9 Bump actions/checkout from 6.0.1 to 6.0.2 (#3493)
Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.1
to 6.0.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/actions/checkout/releases">actions/checkout's
releases</a>.</em></p>
<blockquote>
<h2>v6.0.2</h2>
<h2>What's Changed</h2>
<ul>
<li>Add orchestration_id to git user-agent when ACTIONS_ORCHESTRATION_ID
is set by <a
href="https://github.com/TingluoHuang"><code>@​TingluoHuang</code></a>
in <a
href="https://redirect.github.com/actions/checkout/pull/2355">actions/checkout#2355</a></li>
<li>Fix tag handling: preserve annotations and explicit fetch-tags by <a
href="https://github.com/ericsciple"><code>@​ericsciple</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2356">actions/checkout#2356</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/checkout/compare/v6.0.1...v6.0.2">https://github.com/actions/checkout/compare/v6.0.1...v6.0.2</a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/actions/checkout/blob/main/CHANGELOG.md">actions/checkout's
changelog</a>.</em></p>
<blockquote>
<h1>Changelog</h1>
<h2>v6.0.2</h2>
<ul>
<li>Fix tag handling: preserve annotations and explicit fetch-tags by <a
href="https://github.com/ericsciple"><code>@​ericsciple</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2356">actions/checkout#2356</a></li>
</ul>
<h2>v6.0.1</h2>
<ul>
<li>Add worktree support for persist-credentials includeIf by <a
href="https://github.com/ericsciple"><code>@​ericsciple</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2327">actions/checkout#2327</a></li>
</ul>
<h2>v6.0.0</h2>
<ul>
<li>Persist creds to a separate file by <a
href="https://github.com/ericsciple"><code>@​ericsciple</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2286">actions/checkout#2286</a></li>
<li>Update README to include Node.js 24 support details and requirements
by <a href="https://github.com/salmanmkc"><code>@​salmanmkc</code></a>
in <a
href="https://redirect.github.com/actions/checkout/pull/2248">actions/checkout#2248</a></li>
</ul>
<h2>v5.0.1</h2>
<ul>
<li>Port v6 cleanup to v5 by <a
href="https://github.com/ericsciple"><code>@​ericsciple</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2301">actions/checkout#2301</a></li>
</ul>
<h2>v5.0.0</h2>
<ul>
<li>Update actions checkout to use node 24 by <a
href="https://github.com/salmanmkc"><code>@​salmanmkc</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2226">actions/checkout#2226</a></li>
</ul>
<h2>v4.3.1</h2>
<ul>
<li>Port v6 cleanup to v4 by <a
href="https://github.com/ericsciple"><code>@​ericsciple</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2305">actions/checkout#2305</a></li>
</ul>
<h2>v4.3.0</h2>
<ul>
<li>docs: update README.md by <a
href="https://github.com/motss"><code>@​motss</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/1971">actions/checkout#1971</a></li>
<li>Add internal repos for checking out multiple repositories by <a
href="https://github.com/mouismail"><code>@​mouismail</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/1977">actions/checkout#1977</a></li>
<li>Documentation update - add recommended permissions to Readme by <a
href="https://github.com/benwells"><code>@​benwells</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2043">actions/checkout#2043</a></li>
<li>Adjust positioning of user email note and permissions heading by <a
href="https://github.com/joshmgross"><code>@​joshmgross</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2044">actions/checkout#2044</a></li>
<li>Update README.md by <a
href="https://github.com/nebuk89"><code>@​nebuk89</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2194">actions/checkout#2194</a></li>
<li>Update CODEOWNERS for actions by <a
href="https://github.com/TingluoHuang"><code>@​TingluoHuang</code></a>
in <a
href="https://redirect.github.com/actions/checkout/pull/2224">actions/checkout#2224</a></li>
<li>Update package dependencies by <a
href="https://github.com/salmanmkc"><code>@​salmanmkc</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2236">actions/checkout#2236</a></li>
</ul>
<h2>v4.2.2</h2>
<ul>
<li><code>url-helper.ts</code> now leverages well-known environment
variables by <a href="https://github.com/jww3"><code>@​jww3</code></a>
in <a
href="https://redirect.github.com/actions/checkout/pull/1941">actions/checkout#1941</a></li>
<li>Expand unit test coverage for <code>isGhes</code> by <a
href="https://github.com/jww3"><code>@​jww3</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/1946">actions/checkout#1946</a></li>
</ul>
<h2>v4.2.1</h2>
<ul>
<li>Check out other refs/* by commit if provided, fall back to ref by <a
href="https://github.com/orhantoy"><code>@​orhantoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/1924">actions/checkout#1924</a></li>
</ul>
<h2>v4.2.0</h2>
<ul>
<li>Add Ref and Commit outputs by <a
href="https://github.com/lucacome"><code>@​lucacome</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/1180">actions/checkout#1180</a></li>
<li>Dependency updates by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>- <a
href="https://redirect.github.com/actions/checkout/pull/1777">actions/checkout#1777</a>,
<a
href="https://redirect.github.com/actions/checkout/pull/1872">actions/checkout#1872</a></li>
</ul>
<h2>v4.1.7</h2>
<ul>
<li>Bump the minor-npm-dependencies group across 1 directory with 4
updates by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/1739">actions/checkout#1739</a></li>
<li>Bump actions/checkout from 3 to 4 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/1697">actions/checkout#1697</a></li>
<li>Check out other refs/* by commit by <a
href="https://github.com/orhantoy"><code>@​orhantoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/1774">actions/checkout#1774</a></li>
<li>Pin actions/checkout's own workflows to a known, good, stable
version. by <a href="https://github.com/jww3"><code>@​jww3</code></a> in
<a
href="https://redirect.github.com/actions/checkout/pull/1776">actions/checkout#1776</a></li>
</ul>
<h2>v4.1.6</h2>
<ul>
<li>Check platform to set archive extension appropriately by <a
href="https://github.com/cory-miller"><code>@​cory-miller</code></a> in
<a
href="https://redirect.github.com/actions/checkout/pull/1732">actions/checkout#1732</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/actions/checkout/commit/de0fac2e4500dabe0009e67214ff5f5447ce83dd"><code>de0fac2</code></a>
Fix tag handling: preserve annotations and explicit fetch-tags (<a
href="https://redirect.github.com/actions/checkout/issues/2356">#2356</a>)</li>
<li><a
href="https://github.com/actions/checkout/commit/064fe7f3312418007dea2b49a19844a9ee378f49"><code>064fe7f</code></a>
Add orchestration_id to git user-agent when ACTIONS_ORCHESTRATION_ID is
set (...</li>
<li>See full diff in <a
href="https://github.com/actions/checkout/compare/8e8c483db84b4bee98b60c0593521ed34d9990e8...de0fac2e4500dabe0009e67214ff5f5447ce83dd">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=actions/checkout&package-manager=github_actions&previous-version=6.0.1&new-version=6.0.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-26 09:24:06 +00:00
Vladimir Kukushkin c534a13dcb Update macOS runners to Tahoe (#3489)
Sequoia runners are no longer available and we need to switch to Tahoe.

### Motivation:

Sequoia runners are no longer available and jobs requesting them hang.

### Modifications:

Request Tahoe runners.

### Result:

Jobs no longer hang, macOS tests and benchmarks are running on Tahoe.
2026-01-22 15:54:50 +01:00
Mike DrobandRick Newton-Rogers 192616d47e Disable Xcode-beta builds until one is installed (#3446)
Xcode-latest currently points to the 26.1 release so it gives us a false
sense of version coverage, and should be ignored.

### Motivation:

We do not need to build twice with the same environment.

### Modifications:

Set default value for Xcode latest beta enabled to `false`

### Result:

One fewer job generated for the macOS build matrix.

Co-authored-by: Rick Newton-Rogers <rnro@apple.com>
2026-01-14 13:42:44 +00:00
Honza Dvorsky d779d6d104 Revert "Address potential template injection issues" (#3478)
Reverts apple/swift-nio#3466 - it broke CI in downstream projects.
2026-01-13 09:45:06 +00:00
Mike Drob 5ada77dafa Address potential template injection issues (#3466)
Instead of evaluating inputs directly in the run step, save them to an
environment variable and evaluate that.

### Motivation:

Evaluating workflow inputs directly can lead to injection attacks, such
as those described at https://docs.zizmor.sh/audits/#template-injection

### Modifications:

Evaluate workflow inputs as environment variables so that they do not
inadvertently execute arbitrary shell injections.

### Result:

The workflows should be more secure against malicious inputs.
2026-01-12 19:52:59 +00:00
Mike Drob 92a262f376 ci: only run self-hosted ci on apple runners (#3468)
Limit Darwin Job execution to apple org.

### Motivation:

When the repo is forked, the forks do not have access to the self-hosted
CI, so it should not block actions in the forked environment.

### Modifications:

Conditionalize Darwin job execution.

### Result:

macOS CI will not queue on forks.
2025-12-23 08:11:06 +00:00
Mike Drob 03ec49f001 update actions/checkout and introduce dependabot (#3459)
Update the actions/checkout action to the latest release (v6.0.1)

### Motivation:

https://github.com/actions/checkout?tab=readme-ov-file#whats-new

> * Improved credential security: persist-credentials now stores
credentials in a separate file under $RUNNER_TEMP instead of directly in
.git/config
> * No workflow changes required — git fetch, git push, etc. continue to
work automatically
> * Running authenticated git commands from a [Docker container
action](https://docs.github.com/actions/sharing-automations/creating-actions/creating-a-docker-container-action)
requires Actions Runner
[v2.329.0](https://github.com/actions/runner/releases/tag/v2.329.0) or
later
> * Updated to the node24 runtime
This requires a minimum Actions Runner version of
[v2.327.1](https://github.com/actions/runner/releases/tag/v2.327.1) to
run.

### Modifications:

Updated the dependency version and added dependabot to take care of
future upgrades.

### Result:

Our workflows will be more secure!
2025-12-08 16:25:40 +00:00
Rick Newton-Rogers 74e77dad61 Switch test targets in macos_tests.yml (#3437)
### Motivation:

The Watch Series 10 and iPhone 16 Pro simulators haven't been working
for some time

### Modifications:

Swap the iOS and macOS test targets

### Result:

Testing against simulators should work

Here is an example of the change in action. The new targets can be
discovered but one of the Xcodes then hits an unrelated issue
https://github.com/apple/swift-nio/actions/runs/19130486127/job/54672071880?pr=3437
2025-11-06 13:33:17 +00:00
Rick Newton-Rogers aa3bf227dd Add Xcode 26.1 to macOS CI (#3438)
### Motivation:

Xcode 26.1 has been released so our support window slides forwards.

### Modifications:

* Add Xcode 26.1 job
* Log Xcode and swift versions for debugging purposes

### Result:

Current Xcode support window, easier debugging.

**NOTE:** we will soon disable Xcode 16.3 by default but will give
adopters time to update their PR status checks first

An example of this in action
https://github.com/apple/swift-nio/actions/runs/19129667587/job/54667112541?pr=3438
2025-11-06 11:38:40 +00:00
Rick Newton-Rogers 4e8f4b1c9a Enable Xcode beta by default in macos_tests.yml (#3401)
26.1 Beta 2 has been released so we have an Xcode beta to be testing, we
should enable it by default again. It was previously disabled under the
impression that there was no current beta.
2025-10-09 16:31:10 +01:00
Melissa Kilby dee7095f8d set explicit permissions for GitHub workflows - all remaining workflows (#3396)
See https://github.com/apple/swift-nio/issues/3386

Note: I consistently placed the permissions key at the top (slightly
corrected recent PRs).

CC @rnro

Signed-off-by: Melissa Kilby <mkilby@apple.com>
2025-10-07 11:31:35 +01:00
Rick Newton-Rogers 154706efd3 Matrix custom env vars (#3376)
Allow the specification of custom environment variables in our matrix
workflow and those which use it.

### Motivation:

It can be useful to supply custom environment variables to control build
and runtime options.

### Modifications:

Allow users to supply a string of custom environment variable key-value
pairs which are supplied to the docker container running the matrix
commands.

To attempt to avoid issues with this string concatenation the change
also allows the user to specify custom list entry and key-value-pair
separators.

To avoid parameter bloat the env vars are set for all Swift versions,
hopefully that's sufficient for now.

### Result:

Adopters can 

Examples of this working on Linux and Windows, note the presence of the
test environment variables I injected:
-
https://github.com/apple/swift-nio/actions/runs/17917619451/job/50943847555?pr=3376
- https://github.com/apple/swift-crypto/pull/413/checks

e.g. 
```
Executing Docker command: docker run -v /home/runner/work/swift-nio/swift-nio:/swift-nio -w /swift-nio -e CI=true -e GITHUB_ACTIONS=true -e SWIFT_VERSION=6.0 -e workspace=/swift-nio -e TEST_DEBUG=1 -e TEST_LOG_LEVEL=info swift:6.0-jammy bash -c swift --version && swift test -Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error
```
2025-09-22 16:06:47 +01:00
Fabian Fett 6c114e3c62 Update CI scripts for 6.2 (#3374)
Replaces: #3373
2025-09-19 13:55:48 +01:00
Rick Newton-Rogers 325c3231cf Add Xcode 26.0, 16.4 CI, remove 16.2 (#3375)
### Motivation:

New Xcodes are out so we should test with them.

### Modifications:

Update the macOS matrix generation script

### Result:

Add Xcode 26.0, 16.4 CI, remove 16.2 jobs by default.

CI with the new Xcodes working (except 26.0 which will come online as
nodes recycle
https://github.com/apple/swift-nio/actions/runs/17834807139/job/50709176060?pr=3375)
2025-09-19 09:30:08 +01:00
Mike DrobandCory Benfield b8b1940bd5 Move conditional setup logic from bash to actions (#3313)
Instead of checking for a setup command in bash, we use GitHub Actions
to determine if there is anything to run

### Motivation:

Slightly cleaner output when looking at logs.

### Modifications:

Moved an if statement from bash to yaml.

### Result:

The setup commands step will generally be skipped instead of executing a
no-op

Co-authored-by: Cory Benfield <lukasa@apple.com>
2025-07-22 14:38:38 +00:00
George Barnett 66483af202 Pick visionOS version for Xcode 16.2 (#3307)
Motivation:

The nightly visionOS tests are failing because there
are too many simulators matching the given destination 
selector.

Modifications:

- On Xcode 16.2 use visionOS 2.3

Result:

Nightly CI passes
2025-07-17 13:24:44 +01:00
Mike Drob 83bc5b5844 chore: avoid spurious xcodebuild warning (#3291)
Specify default macOS variant in non-catalyst builds.

https://developer.apple.com/forums/thread/737851

### Motivation:

macOS build has an extra warning:

```
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, name:Any Mac }
{ platform:macOS, variant:Mac Catalyst, name:Any Mac }
```

### Modifications:

Explicitly select the macOS variant.

### Result:

No warnings
2025-07-09 09:35:31 +01:00
Rick Newton-Rogers 09030f291f Make use of symlink to latest Xcode beta (#3285)
### Motivation:

The macOS runners have a symlink to the latest released Xcode beta at
Xcode-latest.app, by making use of it we will always test against the
most recent version.

### Modifications:

Introduce new parameters for the latest Xcode beta and deprecate those
which mention Xcode 21 betas.

### Result:

Tests will move on to using Xcode 26 beta 2 via the symlink

Example of this working
https://github.com/apple/swift-nio/actions/runs/16075841548/job/45370760690?pr=3285
2025-07-04 16:12:08 +01:00
Rafael Cepeda 89be322fe8 Fixed issue with macOS CI when overrides are being used. (#3270)
Fixed issue with macOS CI when overrides are being used.

### Motivation:

When we use Xcode_XX_X_build_arguments_override, the CI fails because of
an extra double quotes ("") making its way to the final command.

### Modifications:

Remove the extra double quote from the Yaml file defining macOS tests.

### Result:

We are able to run `swift build` with extra arguments.
2025-06-20 11:24:21 +01:00
Rick Newton-Rogers d24d9ab882 Add Xcode 26 beta 1 to macOS CI (#3267)
Add Xcode 26 beta 1 to macOS CI and disable Xcode 16.1 jobs by default

### Motivation:

* Xcode 26 beta 1 is now released, we should test our code on it.
* We should drop 16.1 to conserve the number of jobs. 16.1 isn't
offering much coverage anyway since it has the same Swift minor version
(6.0) as Xcode 16.2.

### Modifications:

* Enable use of Xcode 26 beta 1 by default.
* Disable Xcode 16.1 jobs by default

### Result:

* This and downstream repos will run Xcode builds on Xcode 26 beta 1.
* Xcode 16.1 jobs won't run by default on this or downstream repos but
will run if explicitly requested.

An example of this working
https://github.com/apple/swift-nio/actions/runs/15614383580/job/43983277904?pr=3267
2025-06-12 15:46:48 +00:00
George Barnett 927d7ceb8c Revert "Revert "Remove default setup command for Xcode 16.2 (#3242)" (#3244)" (#3248) 2025-05-16 09:50:05 +00:00
George Barnett 9e1ec21900 Revert "Remove default setup command for Xcode 16.2 (#3242)" (#3244)
This reverts commit 774c09975a.
2025-05-15 15:58:36 +01:00
George Barnett 774c09975a Remove default setup command for Xcode 16.2 (#3242)
Motivation:

A setup command for 16.2 was added as a workaround for an infra issue.
This should now be resolved.

Modifications:

- Remove the default setup command

Result:

CI should still work.
2025-05-15 10:08:42 +00:00
Rick Newton-Rogers 05f64f4644 Update macos_tests.yml to limit run time to 30 minutes (#3240)
Update macos_tests.yml to limit run time to 30 minutes - in the future
this should be configurable
2025-05-14 13:58:09 +01:00
Rick Newton-Rogers d8b0dbeb4d Enable visionOS xcodebuilds by default in CI - attempt 2 (#3238)
### Motivation:

Building for visionOS no longer seems to be having issues on the
runners, we should enable it to increase our test coverage.

### Modifications:

Enable visionOS xcodebuilds by default in CI

### Result:

NIO and downstream repositories will see their *existing* macOS CI
workflows now build for visionOS.

They can be disabled if necessary by passing
`visionos_xcode_build_enabled: false`


See apple/swift-nio#3234, apple/swift-nio#3235
2025-05-13 14:01:50 +00:00
Rick Newton-Rogers 7ed5a41281 Macos setup command (#3236)
Add per-xcode setup command

###  Motivation:

Sometimes individual Xcodes require different steps to fixup simulator
configuration.

### Modifications:

* Allow the config to define custom setup steps
* Add some `simctl` commands to Xcode 16.2 by default to workaround
issues

### Result:

Adopters can specify their own setup steps

Example of this working with a test shim in place
https://github.com/apple/swift-nio/actions/runs/14992683747/job/42119567309?pr=3236
2025-05-13 11:12:35 +01:00
Rick Newton-Rogers 34d486b01c Revert "Enable visionOS xcodebuilds by default in CI" (#3235)
Reverts apple/swift-nio#3234

This seems to have caused some instability which I'll investigate so we
should revert for now.
2025-05-09 14:40:35 +01:00
Rick Newton-Rogers 00fedd68f4 Enable visionOS xcodebuilds by default in CI (#3234)
### Motivation:

Building for visionOS no longer seems to be having issues on the
runners, we should enable it to increase our test coverage.

###Modifications:

Enable visionOS xcodebuilds by default in CI

### Result:

NIO and downstream repositories will see their *existing* macOS CI
workflows now build for visionOS.

They can be disabled if necessary by passing
`visionos_xcode_build_enabled: false`
2025-05-08 10:26:40 +01:00
Rick Newton-Rogers 350794f229 uncomment visionOS CI tasks (#3176)
### Motivation:

These don't work on all versions but we should allow people to opt-in if
they know they do work

### Modifications:

Uncomment the steps and make the step default to off

### Result:

People can choose to run visionOS builds and tests
2025-04-04 14:01:18 +01:00
Rick Newton-Rogers b3704d764b Add support for Xcode 16.3 (#3171)
### Motivation:

Xcode 16.3 has been released, we should cover it in CI

### Modifications:

* Add Xcode 16.3 runs by default
* Disable Xcode 16.0 runs by default (soft deprecation)

Note that the Xcode version offering is still a work in progress.

### Result:

macOS CI will test using Xcode 16.3

An example run with this working
https://github.com/apple/swift-nio/actions/runs/14220724296/job/39876502770?pr=3171
2025-04-03 10:32:50 +01:00
Rick Newton-Rogers be80eb6e5d macOS CI pools (#3163)
Add support for macOS CI runner pools

### Motivation:

With new runners coming online we are separating the runners into pools.
* "nightly" runners are to be targeted for asynchronous work which users
aren't waiting on such as overnight work.
* "general" runners can be used for either synchronoous or asynchronous
work.
* At the moment all runers are "general" runners, a subset are "nightly"
runners.

The aim here is to prioritize work which users are waiting for such as
on PRs. Asynchronous work prioritizing the "nightly" runners will likely
end up queuing for the contended runners but synchronous work will claim
any available node.

### Modifications:

* Add a `runner_pool` input for the macOS workflow
* Default the `runner_pool` to `nightly` since the vast majority of
existing workflows are specifying asynchronous work.
* Specify the runner pool in NIO's use of macOS CI.

### Result:

Support for runner pools.

An example of this in action:
https://github.com/apple/swift-nio/actions/runs/14188573697/job/39748250001
2025-04-01 10:35:17 +02:00
Rick Newton-Rogers 213cc0b894 Separate build and test steps in macos_tests.yml (#3162)
Separate build and test steps in `macos_tests.yml`. Test execution can
now also be disabled through an input. This is useful for clarity of
output and also in some cases where test execution may not be supported
yet.
2025-03-31 14:19:42 +00:00
Rick Newton-Rogers 6ff70b5555 Update macOS CI workflow (#3150)
### Motivation:

We are still exploring the shape of macOS CI and exploring the system's
capabilities.

### Modifications:

* Add visionOS jobs
* Remove Xcode 15.4 as it is no longer on the runners
* Add support for running tests targetting other platforms
* Enable test targeting other platforms on daily jobs to increase
coverage without bloating PR runtimes.

###  Result:

More macOS CI coverage

CI run with this enabled
https://github.com/apple/swift-nio/actions/runs/13944231147/job/39027647470?pr=3150
- the iOS failure is unrelated to this change
2025-03-20 09:42:18 +00:00
Rick Newton-Rogers f2f36afb19 Experimental macOS CI (#3141)
Enable macOS CI

### Motivation:

To expand test coverage to the Darwin platforms.

### Modifications:

Create a new re-usable workflow `macos_tests.yml` which offers testing
and compilation checks for multiple Xcodes and simulator destinations.

The new workflow first performs `swift test` with configurable
parameters and then goes on to build the code targeting generic
destinations for:
* iOS
* macOS
* macOS Catalyst
* tvOS
* visionOS (temporarily disabled due to a possible runner issue)
* watchOS

At the moment this is workflow is enabled to run on the NIO repository:
* on each commit to a PR
* on each merge to `main`
* overnight on a timer

This will likely be revised due to capacity.

This functionality is implemented as a standalone workflow to preserve
flexibility as requirements and capacity change over time.

### Result:

Increased test coverage.
2025-03-12 20:19:19 +00:00