mirror of
https://github.com/apple/swift-certificates
synced 2026-11-26 04:47:48 +00:00
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.
66 lines
2.3 KiB
YAML
66 lines
2.3 KiB
YAML
name: PR
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, reopened, synchronize]
|
|
|
|
jobs:
|
|
soundness:
|
|
name: Soundness
|
|
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main
|
|
with:
|
|
license_header_check_project_name: "SwiftCertificates"
|
|
|
|
unit-tests:
|
|
name: Unit tests
|
|
uses: apple/swift-nio/.github/workflows/unit_tests.yml@main
|
|
with:
|
|
linux_6_0_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable"
|
|
linux_6_1_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable"
|
|
linux_6_2_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"
|
|
|
|
benchmarks:
|
|
name: Benchmarks
|
|
uses: apple/swift-nio/.github/workflows/benchmarks.yml@main
|
|
with:
|
|
benchmark_package_path: "Benchmarks"
|
|
|
|
cxx-interop:
|
|
name: Cxx interop
|
|
uses: apple/swift-nio/.github/workflows/cxx_interop.yml@main
|
|
|
|
static-sdk:
|
|
name: Static SDK
|
|
# Workaround https://github.com/nektos/act/issues/1875
|
|
uses: apple/swift-nio/.github/workflows/static_sdk.yml@main
|
|
|
|
cmake-lists:
|
|
name: Check cmake lists
|
|
uses: apple/swift-nio/.github/workflows/cmake_tests.yml@main
|
|
with:
|
|
update_cmake_lists_config: >-
|
|
{
|
|
"targets": [
|
|
{ "name": "X509", "type": "source", "exceptions": [] },
|
|
{ "name": "_CertificateInternals", "type": "source", "exceptions": [] }
|
|
]
|
|
}
|
|
|
|
macos-tests:
|
|
name: macOS tests
|
|
uses: apple/swift-nio/.github/workflows/macos_tests.yml@main
|
|
with:
|
|
runner_pool: general
|
|
build_scheme: swift-certificates
|
|
xcode_16_2_build_arguments_override: "-Xswiftc -Xfrontend -Xswiftc -require-explicit-sendable"
|
|
xcode_16_3_build_arguments_override: "-Xswiftc -Xfrontend -Xswiftc -require-explicit-sendable"
|
|
|
|
release-builds:
|
|
name: Release builds
|
|
uses: apple/swift-nio/.github/workflows/release_builds.yml@main
|