|
| 1 | +name: Pull request |
| 2 | + |
| 3 | +permissions: |
| 4 | + contents: read |
| 5 | + |
| 6 | +on: |
| 7 | + pull_request: |
| 8 | + types: [opened, reopened, synchronize] |
| 9 | + |
| 10 | +concurrency: |
| 11 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 12 | + cancel-in-progress: true |
| 13 | + |
| 14 | +jobs: |
| 15 | + tests: |
| 16 | + name: Test |
| 17 | + uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main |
| 18 | + with: |
| 19 | + linux_os_versions: '["amazonlinux2", "bookworm", "noble", "jammy", "rhel-ubi9"]' |
| 20 | + linux_pre_build_command: ./.github/scripts/prebuild.sh |
| 21 | + linux_swift_versions: '["nightly-main", "nightly-6.2"]' |
| 22 | + windows_pre_build_command: 'Invoke-Program .\.github\scripts\prebuild.ps1' |
| 23 | + windows_swift_versions: '["nightly-main"]' |
| 24 | + enable_linux_static_sdk_build: true |
| 25 | + enable_macos_checks: true |
| 26 | + macos_exclude_xcode_versions: "[{\"xcode_version\": \"16.3\"}, {\"xcode_version\": \"16.4\"}]" |
| 27 | + macos_pre_build_command: ./.github/scripts/prebuild.sh |
| 28 | + cmake-smoke-test: |
| 29 | + name: cmake-smoke-test |
| 30 | + uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main |
| 31 | + with: |
| 32 | + linux_os_versions: '["noble"]' |
| 33 | + linux_pre_build_command: INSTALL_CMAKE=1 ./.github/scripts/prebuild.sh |
| 34 | + linux_build_command: 'swift package -Xbuild-tools-swiftc -DUSE_PROCESS_SPAWNING_WORKAROUND cmake-smoke-test --disable-sandbox --cmake-path `which cmake` --ninja-path `which ninja` --extra-cmake-arg -DCMAKE_C_COMPILER=`which clang` --extra-cmake-arg -DCMAKE_CXX_COMPILER=`which clang++` --extra-cmake-arg -DCMAKE_Swift_COMPILER=`which swiftc`' |
| 35 | + linux_swift_versions: '["nightly-main"]' |
| 36 | + enable_macos_checks: true |
| 37 | + macos_xcode_versions: '["26.0"]' |
| 38 | + macos_pre_build_command: INSTALL_CMAKE=1 ./.github/scripts/prebuild.sh |
| 39 | + macos_build_command: 'export PATH=$PATH:$RUNNER_TOOL_CACHE && swift package cmake-smoke-test --disable-sandbox --cmake-path `which cmake` --ninja-path `which ninja` --extra-cmake-arg -DCMAKE_C_COMPILER=`which clang` --extra-cmake-arg -DCMAKE_CXX_COMPILER=`which clang++` --extra-cmake-arg -DCMAKE_Swift_COMPILER=`which swiftc`' |
| 40 | + windows_pre_build_command: 'Invoke-Program .\.github\scripts\prebuild.ps1 -InstallCMake' |
| 41 | + windows_swift_versions: '["nightly-main"]' |
| 42 | + windows_build_command: 'Invoke-Program swift package cmake-smoke-test --disable-sandbox --cmake-path (Get-Command cmake).Path --ninja-path (Get-Command ninja).Path --extra-cmake-arg "-DCMAKE_C_COMPILER=$((Get-Command clang).Path)" --extra-cmake-arg "-DCMAKE_CXX_COMPILER=$((Get-Command clang).Path)" --extra-cmake-arg "-DCMAKE_Swift_COMPILER=$((Get-Command swiftc).Path)" --extra-cmake-arg "-DCMAKE_STATIC_LIBRARY_PREFIX_Swift=lib" --extra-cmake-arg "-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreadedDLL"' |
| 43 | + |
| 44 | + soundness: |
| 45 | + name: Soundness |
| 46 | + uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main |
| 47 | + with: |
| 48 | + license_header_check_project_name: "Swift" |
| 49 | + api_breakage_check_enabled: false |
0 commit comments