Skip to content

Commit 77b1dd9

Browse files
authored
Enable amazonlinux2 in pull_request.yml (#227)
Due to frequent regressions with Amazon Linux 2 we should test it on CI.
1 parent eae537f commit 77b1dd9

File tree

2 files changed

+74
-28
lines changed

2 files changed

+74
-28
lines changed

.github/workflows/pull_request.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,18 @@ jobs:
99
name: Test
1010
uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main
1111
with:
12-
linux_pre_build_command: apt-get update && apt-get install -y locales locales-all libsqlite3-dev
12+
linux_os_versions: '["amazonlinux2", "bookworm", "jammy", "focal", "noble", "rhel-ubi9"]'
13+
linux_swift_versions: '["6.0", "6.1", "nightly-6.2", "nightly-main"]'
14+
linux_pre_build_command: |
15+
if command -v apt-get >/dev/null 2>&1 ; then # bookworm, noble, jammy, focal
16+
apt-get update -y
17+
apt-get install -y locales locales-all libsqlite3-dev
18+
elif command -v yum >/dev/null 2>&1 ; then # amazonlinux2, rhel-ubi9
19+
yum update -y
20+
yum install -y sqlite-devel
21+
fi
1322
enable_windows_checks: false
23+
1424
soundness:
1525
name: Soundness
1626
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main

Package.resolved

Lines changed: 63 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)