Skip to content

Commit 1249f67

Browse files
committed
GitHub actions: improve linux_pre_build_command formatting and install glibc debug symbols
This should give crash backtraces more info
1 parent 82cc837 commit 1249f67

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

.github/workflows/pull_request.yml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,33 @@ jobs:
1414
uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main
1515
with:
1616
linux_os_versions: '["noble", "jammy", "focal", "rhel-ubi9"]'
17-
linux_pre_build_command: command -v apt >/dev/null 2>&1 && apt update && apt install -y libsqlite3-dev libncurses-dev || (command -v yum >/dev/null 2>&1 && yum update -y && yum install -y sqlite-devel ncurses-devel)
17+
linux_pre_build_command: |
18+
if command -v apt >/dev/null 2>&1 ; then # bookworm, noble, jammy, focal
19+
apt update -y
20+
21+
# Build dependencies
22+
apt install -y libsqlite3-dev libncurses-dev
23+
24+
# Debug symbols
25+
apt install -y glibc-debug
26+
elif command -v dnf >/dev/null 2>&1 ; then # rhel-ubi9
27+
dnf update -y
28+
29+
# Build dependencies
30+
dnf install -y sqlite-devel ncurses-devel
31+
32+
# Debug symbols
33+
dnf debuginfo-install glibc
34+
elif command -v yum >/dev/null 2>&1 ; then # amazonlinux2
35+
yum update -y
36+
37+
# Build dependencies
38+
yum install -y sqlite-devel ncurses-devel
39+
40+
# Debug symbols
41+
yum install -y yum-utils
42+
debuginfo-install glibc
43+
fi
1844
linux_build_command: 'swift test --no-parallel'
1945
linux_swift_versions: '["nightly-main", "nightly-6.2"]'
2046
windows_swift_versions: '["nightly-main"]'

0 commit comments

Comments
 (0)