Create a NetworkQueue #187
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Pull request | |
| on: | |
| pull_request: | |
| types: [opened, reopened, synchronize] | |
| jobs: | |
| tests: | |
| name: Test | |
| uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@0.0.11 | |
| with: | |
| swift_flags: "-Xswiftc -warnings-as-errors" | |
| swift_nightly_flags: "--build-system native -Xswiftc -warnings-as-errors" # workaround nightly-main issue | |
| enable_macos_checks: true | |
| macos_exclude_xcode_versions: "[{\"xcode_version\": \"16.4\"}, {\"xcode_version\": \"26.3\"}]" | |
| macos_build_command: >- | |
| bash -c ' | |
| rc=0; | |
| echo "=== xcodebuild macOS ==="; | |
| /usr/bin/xcodebuild -quiet -scheme swift-network-evolution-Package -destination "generic/platform=macos,variant=macos" build && macos=PASSED || { rc=1; macos=FAILED; }; | |
| echo "=== macOS build: $macos ==="; | |
| echo "=== xcodebuild Mac Catalyst ==="; | |
| /usr/bin/xcodebuild -quiet -scheme swift-network-evolution-Package -destination "generic/platform=macos,variant=Mac Catalyst" build && catalyst=PASSED || { rc=1; catalyst=FAILED; }; | |
| echo "=== Mac Catalyst build: $catalyst ==="; | |
| echo "=== xcodebuild iOS ==="; | |
| /usr/bin/xcodebuild -quiet -scheme swift-network-evolution-Package -destination "generic/platform=ios" build && ios=PASSED || { rc=1; ios=FAILED; }; | |
| echo "=== iOS build: $ios ==="; | |
| echo "=== xcodebuild watchOS ==="; | |
| /usr/bin/xcodebuild -quiet -scheme swift-network-evolution-Package -destination "generic/platform=watchos" build && watchos=PASSED || { rc=1; watchos=FAILED; }; | |
| echo "=== watchOS build: $watchos ==="; | |
| echo "=== xcodebuild tvOS ==="; | |
| /usr/bin/xcodebuild -quiet -scheme swift-network-evolution-Package -destination "generic/platform=tvos" build && tvos=PASSED || { rc=1; tvos=FAILED; }; | |
| echo "=== tvOS build: $tvos ==="; | |
| echo "=== xcodebuild visionOS ==="; | |
| /usr/bin/xcodebuild -quiet -scheme swift-network-evolution-Package -destination "generic/platform=visionos" build && visionos=PASSED || { rc=1; visionos=FAILED; }; | |
| echo "=== visionOS build: $visionos ==="; | |
| echo "=== xcrun swift test ==="; | |
| xcrun swift test --quiet "$@" && tests=PASSED || { rc=1; tests=FAILED; }; | |
| echo "=== swift test: $tests ==="; | |
| echo "=== Summary ==="; | |
| printf "%-20s %s\n" "macOS build:" "$macos"; | |
| printf "%-20s %s\n" "Mac Catalyst build:" "$catalyst"; | |
| printf "%-20s %s\n" "iOS build:" "$ios"; | |
| printf "%-20s %s\n" "watchOS build:" "$watchos"; | |
| printf "%-20s %s\n" "tvOS build:" "$tvos"; | |
| printf "%-20s %s\n" "visionOS build:" "$visionos"; | |
| printf "%-20s %s\n" "swift test:" "$tests"; | |
| exit $rc | |
| ' bash | |
| enable_linux_checks: true | |
| linux_swift_versions: '["nightly-main", "nightly-6.3", "6.3"]' | |
| linux_build_command: >- | |
| bash -c ' | |
| set -e; | |
| echo "=== Build (default traits) ==="; | |
| swift build --build-tests --quiet "$@"; | |
| echo "=== Build (default traits): PASSED ==="; | |
| echo "=== Build (additive traits on) ==="; | |
| swift build --build-tests --quiet --traits DatapathLogging,QlogOutput,SignpostOutput "$@"; | |
| echo "=== Build (additive traits on): PASSED ==="; | |
| echo "=== Build (reductive traits on) ==="; | |
| swift build --build-tests --quiet --traits DisableDebugLogging,DisableErrorLogging "$@"; | |
| echo "=== Build (reductive traits on): PASSED ==="; | |
| echo "=== Test (debug) ==="; | |
| swift test --quiet "$@"; | |
| echo "=== Test (debug): PASSED ==="; | |
| echo "=== Test (release) ==="; | |
| swift test --quiet -c release "$@"; | |
| echo "=== Test (release): PASSED ==="; | |
| echo "=== Summary: all builds and tests passed ===" | |
| ' bash | |
| enable_windows_checks: false | |
| enable_android_sdk_build: false | |
| enable_embedded_wasm_sdk_build: false | |
| enable_linux_static_sdk_build: true | |
| soundness: | |
| name: Soundness | |
| uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main | |
| with: | |
| api_breakage_check_enabled: false | |
| shell_check_enabled: false | |
| license_header_check_project_name: "Swift" | |
| api_breakage_check_container_image: "swiftlang/swift:nightly-6.3-jammy" |