Skip to content

Commit 6fc1fcc

Browse files
committed
Add Amazon Linux 2023 to CI
Amazon Linux 2023 can't be added to `linux_os_versions` directly: it is crossed with `linux_swift_versions`, and there is no `swift:6.2-amazonlinux2023` image, so a 6.2 cell fails to pull. Run it as a standalone job pinned to nightly-main instead. Coverage is intentionally partial: nightly-main only, native test only. The static Linux SDK build is omitted; it cross-compiles to musl, so the host OS adds little coverage, and the nightly-main static-SDK cell additionally hit a toolchain-snapshot skew.
1 parent 784b55d commit 6fc1fcc

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/pull_request.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
name: Test
1313
uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main
1414
with:
15-
linux_os_versions: '["bookworm", "noble", "jammy", "rhel-ubi9"]'
15+
linux_os_versions: '["amazonlinux2023", "bookworm", "noble", "jammy", "rhel-ubi9"]'
1616
linux_swift_versions: '["6.2", "nightly-main"]'
1717
linux_pre_build_command: |
1818
if command -v apt-get >/dev/null 2>&1 ; then # bookworm, noble, jammy
@@ -24,12 +24,13 @@ jobs:
2424
apt-get update -y
2525
apt-get install -y procps
2626
fi
27-
elif command -v dnf >/dev/null 2>&1 ; then # rhel-ubi9
27+
elif command -v dnf >/dev/null 2>&1 ; then # amazonlinux2023, rhel-ubi9
2828
dnf update -y
2929
3030
# Test dependencies
3131
dnf install -y procps
3232
fi
33+
linux_exclude_swift_versions: '[{"swift_version": "6.2", "os_version": "amazonlinux2023"}]'
3334
linux_build_command: "swift test && swift test -c release && swift test --disable-default-traits"
3435
enable_freebsd_checks: true
3536
freebsd_build_command: "swift test && swift test -c release && swift test --disable-default-traits"

0 commit comments

Comments
 (0)