Skip to content

Commit ed08d83

Browse files
committed
pipeline: Include steps to test using SwiftBuild build system
1 parent df32ea1 commit ed08d83

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

.github/workflows/pull_request.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,27 @@ concurrency:
1010

1111
jobs:
1212
tests:
13-
name: Test
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
buildSystem: ["native", "swiftbuild" ]
17+
linuxSwiftVersion: ['["nightly-main", "nightly-6.2"]', '["nightly-main"]']
18+
exclude:
19+
- buildSystem: "swiftbuild"
20+
linuxSwiftVersion: '["nightly-main", "nightly-6.2"]'
21+
- buildSystem: "native"
22+
linuxSwiftVersion: '["nightly-main"]'
23+
name: Test (${{ matrix.buildSystem }})
1424
uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main
1525
with:
1626
linux_os_versions: '["amazonlinux2", "bookworm", "noble", "jammy", "rhel-ubi9"]'
1727
linux_pre_build_command: ./.github/scripts/linux_pre_build.sh
18-
linux_build_command: 'swift test --no-parallel'
19-
linux_swift_versions: '["nightly-main", "nightly-6.2"]'
28+
linux_build_command: 'swift test --no-parallel --build-system ${{ matrix.buildSystem }}'
29+
linux_swift_versions: ${{ matrix.linuxSwiftVersion }}
2030
windows_swift_versions: '["nightly-main"]'
21-
windows_build_command: 'Invoke-Program swift test --no-parallel'
31+
windows_build_command: 'Invoke-Program swift test --no-parallel --build-system ${{ matrix.buildSystem }}'
2232
enable_linux_static_sdk_build: true
23-
linux_static_sdk_build_command: SWIFTBUILD_STATIC_LINK=1 LLBUILD_STATIC_LINK=1 swift build
33+
linux_static_sdk_build_command: SWIFTBUILD_STATIC_LINK=1 LLBUILD_STATIC_LINK=1 swift build --build-system ${{ matrix.buildSystem }}
2434
cmake-smoke-test:
2535
name: cmake-smoke-test
2636
uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main

0 commit comments

Comments
 (0)