Skip to content

Commit 03c4066

Browse files
committed
Enable CI testing for Linux
1 parent 98fb2ca commit 03c4066

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/pull_request.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,21 @@ jobs:
99
name: Test
1010
uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main
1111
with:
12-
linux_os_versions: '["noble", "jammy", "focal", "rhel-ubi9"]'
12+
linux_os_versions: '["bookworm", "noble", "jammy", "focal", "rhel-ubi9"]'
1313
linux_swift_versions: '["6.1", "nightly-main"]'
1414
linux_build_command: 'swift build'
15+
linux_pre_build_command: |
16+
if command -v apt-get >/dev/null 2>&1 ; then # bookworm, noble, jammy, focal
17+
apt-get update -y
18+
19+
# Test dependencies
20+
apt-get install -y procps
21+
elif command -v dnf >/dev/null 2>&1 ; then # rhel-ubi9
22+
dnf update -y
23+
24+
# Test dependencies
25+
dnf install -y procps
26+
fi
1527
windows_swift_versions: '["6.1", "nightly-main"]'
1628
windows_build_command: 'swift build'
1729
enable_macos_checks: true

0 commit comments

Comments
 (0)