Skip to content

Enable amazonlinux2 in pull_request.yml #127

Enable amazonlinux2 in pull_request.yml

Enable amazonlinux2 in pull_request.yml #127

Workflow file for this run

name: Pull request
on:
pull_request:
types: [opened, reopened, synchronize]
jobs:
tests_5_9:
name: Test 5.9-compatible Linux distributions
uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main
with:
linux_os_versions: '["amazonlinux2", "jammy", "focal", "rhel-ubi9"]'
linux_swift_versions: '["5.9", "5.10", "6.0", "6.1", "nightly-6.2", "nightly-main"]'
linux_pre_build_command: |
if command -v apt-get >/dev/null 2>&1 ; then # bookworm, noble, jammy, focal
apt-get update -y
apt-get install -y locales locales-all libsqlite3-dev
elif command -v yum >/dev/null 2>&1 ; then # amazonlinux2
yum update -y
yum install -y sqlite-devel
fi
enable_windows_checks: false
tests_6_0:
name: Test 6.0-compatible Linux distributions
uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main
with:
linux_os_versions: '["bookworm", "noble"]'
linux_swift_versions: '["6.0", "6.1", "nightly-6.2", "nightly-main"]'
linux_pre_build_command: |
if command -v apt-get >/dev/null 2>&1 ; then # bookworm, noble, jammy, focal
apt-get update -y
apt-get install -y locales locales-all libsqlite3-dev
elif command -v yum >/dev/null 2>&1 ; then # amazonlinux2
yum update -y
yum install -y sqlite-devel
fi
enable_windows_checks: false
soundness:
name: Soundness
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main
with:
api_breakage_check_enabled: false