Do not run the matrix if there is no macOS versions picked for benchmarks #3450
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
After the recent addition of macOS-based benchmarks, the
mainworkflow has been failing with:This happens because
swift-niodoes not set any_enabledflag for any version of Xcode to run the benchmarks.An example of a failed run: https://github.com/apple/swift-nio/actions/runs/19479529118
Motivation:
Scheduled jobs should not fail.
Modifications:
Added a condition for running macOS benchmarks matrix generation job.
Result:
Jobs should not fail without any Xcode versions picked for running benchmarks.
An example of a run with macos-matrix job skipped: https://github.com/apple/swift-nio/actions/runs/19482328681/job/55758816398
An example of a run with a opt-in macOS Benchmarks: https://github.com/apple/swift-nio/actions/runs/19484086327/job/55762298924