mirror of
https://github.com/apple/swift-nio
synced 2026-11-24 04:37:54 +00:00
### Motivation * The `swift_*` inputs request Xcodes by Swift version with symlinks on the runners owning the mapping. This more directly expresses the library support window. * All callers should migrate to `swift_6_1/6_2/6_3_enabled` instead of specifying Xcode versions directly. ### Modifications * Default `xcode_16_3/16_4/26_0/26_1/26_2_enabled` to `false` and mark their descriptions as deprecated. * Default `swift_6_1/6_2/6_3_enabled` to `true`. ### Result * Repos still passing `xcode_*_enabled: true` explicitly continue to work until they migrate.
96 lines
3.6 KiB
YAML
96 lines
3.6 KiB
YAML
name: Main
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
schedule:
|
|
- cron: "0 8,20 * * *"
|
|
|
|
jobs:
|
|
unit-tests:
|
|
name: Unit tests
|
|
# Workaround https://github.com/nektos/act/issues/1875
|
|
uses: apple/swift-nio/.github/workflows/unit_tests.yml@main
|
|
with:
|
|
linux_6_1_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error"
|
|
linux_6_2_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error"
|
|
linux_6_3_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error"
|
|
linux_nightly_next_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error"
|
|
linux_nightly_main_arguments_override: "--explicit-target-dependency-import-check error"
|
|
|
|
cxx-interop:
|
|
name: Cxx interop
|
|
# Workaround https://github.com/nektos/act/issues/1875
|
|
uses: apple/swift-nio/.github/workflows/cxx_interop.yml@main
|
|
|
|
benchmarks:
|
|
name: Benchmarks
|
|
# Workaround https://github.com/nektos/act/issues/1875
|
|
uses: apple/swift-nio/.github/workflows/benchmarks.yml@main
|
|
with:
|
|
benchmark_package_path: "Benchmarks"
|
|
|
|
construct-integration-test-matrix:
|
|
name: Construct integration test matrix
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
integration-test-matrix: '${{ steps.generate-matrix.outputs.integration-test-matrix }}'
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
- id: generate-matrix
|
|
run: echo "integration-test-matrix=$(curl -s --retry 3 https://raw.githubusercontent.com/apple/swift-nio/main/scripts/generate_matrix.sh | bash)" >> "$GITHUB_OUTPUT"
|
|
env:
|
|
MATRIX_LINUX_SETUP_COMMAND: "apt-get update -y -q && apt-get install -y -q lsof dnsutils netcat-openbsd net-tools curl jq"
|
|
MATRIX_LINUX_COMMAND: "./scripts/integration_tests.sh"
|
|
MATRIX_LINUX_ENV_VARS_JSON: '{"NIO_ALLOC_COUNTER_TESTS_PARALLEL": "true"}'
|
|
|
|
integration-tests:
|
|
name: Integration tests
|
|
needs: construct-integration-test-matrix
|
|
# Workaround https://github.com/nektos/act/issues/1875
|
|
uses: apple/swift-nio/.github/workflows/swift_test_matrix.yml@main
|
|
with:
|
|
name: "Integration tests"
|
|
matrix_string: '${{ needs.construct-integration-test-matrix.outputs.integration-test-matrix }}'
|
|
|
|
static-sdk:
|
|
name: Static Linux Swift SDK
|
|
# Workaround https://github.com/nektos/act/issues/1875
|
|
uses: apple/swift-nio/.github/workflows/static_sdk.yml@main
|
|
|
|
wasm-sdk:
|
|
name: WebAssembly Swift SDK
|
|
# Workaround https://github.com/nektos/act/issues/1875
|
|
uses: apple/swift-nio/.github/workflows/wasm_swift_sdk.yml@main
|
|
with:
|
|
additional_command_arguments: "--target NIOCore"
|
|
|
|
android-sdk:
|
|
name: Android Swift SDK
|
|
# Workaround https://github.com/nektos/act/issues/1875
|
|
uses: apple/swift-nio/.github/workflows/android_swift_sdk.yml@main
|
|
|
|
macos-tests:
|
|
name: macOS tests
|
|
# Workaround https://github.com/nektos/act/issues/1875
|
|
uses: apple/swift-nio/.github/workflows/macos_tests.yml@main
|
|
with:
|
|
runner_pool: nightly
|
|
build_scheme: swift-nio-Package
|
|
debug_output_enabled: true
|
|
macos_xcode_test_enabled: false # Disabled because of an issue
|
|
ios_xcode_test_enabled: true
|
|
watchos_xcode_test_enabled: true
|
|
tvos_xcode_test_enabled: true
|
|
visionos_xcode_test_enabled: true
|
|
|
|
release-builds:
|
|
name: Release builds
|
|
uses: apple/swift-nio/.github/workflows/release_builds.yml@main
|