pipeline: Include steps to test using SwiftBuild build system #589
Workflow file for this run
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] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
tests: | |
name: Test (Native) | |
uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main | |
with: | |
linux_os_versions: '["amazonlinux2", "bookworm", "noble", "jammy", "rhel-ubi9"]' | |
linux_pre_build_command: ./.github/scripts/linux_pre_build.sh | |
linux_build_command: 'swift test --no-parallel --build-system native' | |
linux_swift_versions: '["nightly-main", "nightly-6.2"]' | |
windows_swift_versions: '["nightly-main"]' | |
windows_build_command: 'Invoke-Program swift test --no-parallel --build-system native' | |
enable_linux_static_sdk_build: true | |
linux_static_sdk_build_command: SWIFTBUILD_STATIC_LINK=1 LLBUILD_STATIC_LINK=1 swift build | |
tests-swift-build: | |
name: Test (Swift Build) | |
uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main | |
with: | |
linux_os_versions: '["amazonlinux2", "bookworm", "noble", "jammy", "rhel-ubi9"]' | |
linux_pre_build_command: ./.github/scripts/linux_pre_build.sh | |
linux_build_command: 'swift test --no-parallel --build-system swiftbuild' | |
linux_swift_versions: '["nightly-main",]' | |
windows_swift_versions: '["nightly-main"]' | |
windows_build_command: 'Invoke-Program swift test --no-parallel --build-system swiftbuild' | |
enable_linux_static_sdk_build: true | |
linux_static_sdk_build_command: SWIFTBUILD_STATIC_LINK=1 LLBUILD_STATIC_LINK=1 swift build | |
cmake-smoke-test: | |
name: cmake-smoke-test | |
uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main | |
with: | |
linux_os_versions: '["noble"]' | |
linux_pre_build_command: SKIP_ANDROID=1 INSTALL_CMAKE=1 ./.github/scripts/linux_pre_build.sh | |
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`' | |
linux_swift_versions: '["nightly-main"]' | |
windows_swift_versions: '[]' | |
soundness: | |
name: Soundness | |
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main | |
with: | |
license_header_check_project_name: "Swift" | |
api_breakage_check_enabled: false | |
format_check_enabled: false |