File tree 1 file changed +27
-1
lines changed 1 file changed +27
-1
lines changed Original file line number Diff line number Diff line change 14
14
uses : swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main
15
15
with :
16
16
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-get >/dev/null 2>&1 ; then # bookworm, noble, jammy, focal
19
+ apt-get update -y
20
+
21
+ # Build dependencies
22
+ apt-get install -y libsqlite3-dev libncurses-dev
23
+
24
+ # Debug symbols
25
+ apt-get install -y libc6-dbg
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 -y 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 -y glibc
43
+ fi
18
44
linux_build_command : ' swift test --no-parallel'
19
45
linux_swift_versions : ' ["nightly-main", "nightly-6.2"]'
20
46
windows_swift_versions : ' ["nightly-main"]'
You can’t perform that action at this time.
0 commit comments