Skip to content

Commit 92086e4

Browse files
committed
Enable CI testing for Linux
1 parent 98fb2ca commit 92086e4

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

.github/workflows/pull_request.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,25 @@ 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: '["debian12", "noble", "jammy", "focal", "rhel-ubi9", "amazonlinux2"]'
1313
linux_swift_versions: '["6.1", "nightly-main"]'
14-
linux_build_command: 'swift build'
14+
linux_pre_build_command: |
15+
if command -v apt-get >/dev/null 2>&1 ; then # debian12, noble, jammy, focal
16+
apt-get update -y
17+
18+
# Test dependencies
19+
apt-get install -y procps
20+
elif command -v dnf >/dev/null 2>&1 ; then # rhel-ubi9
21+
dnf update -y
22+
23+
# Test dependencies
24+
dnf install -y procps
25+
elif command -v yum >/dev/null 2>&1 ; then # amazonlinux2
26+
yum update -y
27+
28+
# Test dependencies
29+
yum install -y procps
30+
fi
1531
windows_swift_versions: '["6.1", "nightly-main"]'
1632
windows_build_command: 'swift build'
1733
enable_macos_checks: true

0 commit comments

Comments
 (0)