Skip to content

Commit 09c189a

Browse files
authored
Add linux_pre_build_command in pull_request.yml
1 parent ad92449 commit 09c189a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/pull_request.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,14 @@ jobs:
1111
with:
1212
linux_os_versions: '["amazonlinux2", "bookworm", "noble", "jammy", "focal", "rhel-ubi9"]'
1313
linux_swift_versions: '["6.0", "6.1", "nightly-6.2", "nightly-main"]'
14-
# linux_pre_build_command: apt-get update && apt-get install -y locales locales-all libsqlite3-dev
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
19+
yum update -y
20+
yum install -y libsqlite3x-devel
21+
fi
1522
enable_windows_checks: false
1623
soundness:
1724
name: Soundness

0 commit comments

Comments
 (0)