Compare commits

...

4 Commits

Author SHA1 Message Date
Adam Fowler 9722d62c61
Merge 310734d2f8 into 071d1cac3c 2025-04-07 22:50:32 +02:00
Rick Newton-Rogers 071d1cac3c
Enable macOS CI on pull requests (#170)
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 12:20:11 +02:00
Rick Newton-Rogers 0556b16079
Enable macOS CI on merge to main and daily timer (#169)
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-31 13:29:44 +01:00
Adam Fowler 310734d2f8 If FoundationEssentials is available use it 2025-01-08 22:46:04 +00:00
3 changed files with 21 additions and 1 deletions

View File

@ -16,3 +16,10 @@ jobs:
linux_6_0_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable"
linux_nightly_next_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable"
linux_nightly_main_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable"
macos-tests:
name: macOS tests
uses: apple/swift-nio/.github/workflows/macos_tests.yml@main
with:
runner_pool: nightly
build_scheme: swift-metrics-Package

View File

@ -24,3 +24,10 @@ jobs:
cxx-interop:
name: Cxx interop
uses: apple/swift-nio/.github/workflows/cxx_interop.yml@main
macos-tests:
name: macOS tests
uses: apple/swift-nio/.github/workflows/macos_tests.yml@main
with:
runner_pool: general
build_scheme: swift-metrics-Package

View File

@ -16,10 +16,16 @@
// https://github.com/swiftlang/swift/issues/79285
@_exported import CoreMetrics
import Foundation
import Dispatch
@_exported import class CoreMetrics.Timer
#if canImport(FoundationEssentials)
import FoundationEssentials
#else
import Foundation
#endif
extension Timer {
/// Convenience for measuring duration of a closure.
///