Skip to content

Commit 291952a

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

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/pull_request.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,21 @@ concurrency:
1010

1111
jobs:
1212
tests:
13-
name: Test
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
buildSystem: ["native", "swiftbuild" ]
17+
name: Test (${{ matrix.buildSystem }})
1418
uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main
1519
with:
1620
linux_os_versions: '["amazonlinux2", "bookworm", "noble", "jammy", "rhel-ubi9"]'
1721
linux_pre_build_command: ./.github/scripts/linux_pre_build.sh
18-
linux_build_command: 'swift test --no-parallel'
22+
linux_build_command: 'swift test --no-parallel --build-system ${{ matrix.buildSystem }}'
1923
linux_swift_versions: '["nightly-main", "nightly-6.2"]'
2024
windows_swift_versions: '["nightly-main"]'
21-
windows_build_command: 'Invoke-Program swift test --no-parallel'
25+
windows_build_command: 'Invoke-Program swift test --no-parallel --build-system ${{ matrix.buildSystem }}'
2226
enable_linux_static_sdk_build: true
23-
linux_static_sdk_build_command: SWIFTBUILD_STATIC_LINK=1 LLBUILD_STATIC_LINK=1 swift build
27+
linux_static_sdk_build_command: SWIFTBUILD_STATIC_LINK=1 LLBUILD_STATIC_LINK=1 swift build --build-system ${{ matrix.buildSystem }}
2428
cmake-smoke-test:
2529
name: cmake-smoke-test
2630
uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main

0 commit comments

Comments
 (0)