mirror of
https://github.com/apple/swift-nio-imap
synced 2026-11-27 05:04:23 +00:00
68 lines
2.4 KiB
YAML
68 lines
2.4 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: "SwiftNIO"
|
|
|
|
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"
|
|
linux_nightly_6_0_arguments_override: "--explicit-target-dependency-import-check error"
|
|
linux_nightly_main_arguments_override: "--explicit-target-dependency-import-check error"
|
|
|
|
cxx-interop:
|
|
name: Cxx interop
|
|
uses: apple/swift-nio/.github/workflows/cxx_interop.yml@main
|
|
|
|
android-sdk:
|
|
name: Android Swift SDK
|
|
uses: apple/swift-nio/.github/workflows/android_swift_sdk.yml@main
|
|
with:
|
|
# swift-collections 1.6.0 uses `@inline(always)` under `#if compiler(>=6.3)`, but the
|
|
# attribute is still gated behind the experimental `InlineAlways` feature in the nightly
|
|
# `main` toolchain this job builds with. Enable it until the dependency's guard is fixed
|
|
# upstream (cf. apple/swift-collections #580/#584).
|
|
additional_command_arguments: "-Xswiftc -enable-experimental-feature -Xswiftc InlineAlways"
|
|
|
|
macos-tests:
|
|
name: macOS tests
|
|
uses: apple/swift-nio/.github/workflows/macos_tests.yml@main
|
|
with:
|
|
runner_pool: general
|
|
build_scheme: swift-nio-imap
|
|
swift_6_1_build_arguments_override: "-Xswiftc -Xfrontend -Xswiftc -require-explicit-sendable -Xswiftc -warnings-as-errors"
|
|
swift_6_2_build_arguments_override: "-Xswiftc -Xfrontend -Xswiftc -require-explicit-sendable -Xswiftc -warnings-as-errors"
|
|
swift_6_3_build_arguments_override: "-Xswiftc -Xfrontend -Xswiftc -require-explicit-sendable -Xswiftc -warnings-as-errors"
|
|
|
|
examples:
|
|
name: Build examples
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
example: [CLI, Proxy, Fuzzer, PerformanceTester]
|
|
container:
|
|
image: swift:6.0
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
persist-credentials: false
|
|
- name: Build
|
|
run: swift build --package-path "Examples/${{ matrix.example }}"
|
|
- name: Test
|
|
if: matrix.example == 'CLI'
|
|
run: swift test --package-path "Examples/CLI"
|