Skip to content

Commit d9bc4d1

Browse files
committed
[DO NOT MERGE] testing test crashes
1 parent fbdbca8 commit d9bc4d1

File tree

2 files changed

+36
-4
lines changed

2 files changed

+36
-4
lines changed

.github/workflows/dispatch.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
apt-get update -y
2+
apt-get install -y cmake ninja-build
3+
cd /tmp && mkdir build
4+
git clone https://github.com/apple/swift-corelibs-libdispatch
5+
cd /tmp/swift-corelibs-libdispatch
6+
#git checkout swift-6.0-RELEASE
7+
cd /tmp
8+
cmake -G Ninja \
9+
/tmp/swift-corelibs-libdispatch \
10+
-B /tmp/build \
11+
-DCMAKE_C_FLAGS=-fno-omit-frame-pointer \
12+
-DCMAKE_CXX_FLAGS=-fno-omit-frame-pointer \
13+
-DCMAKE_REQUIRED_DEFINITIONS=-D_GNU_SOURCE \
14+
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
15+
-DENABLE_SWIFT=YES \
16+
-DCMAKE_C_COMPILER=/usr/bin/clang \
17+
-DCMAKE_CXX_COMPILER=/usr/bin/clang++ \
18+
-DCMAKE_INSTALL_PREFIX=/usr \
19+
-DCMAKE_INSTALL_LIBDIR=lib
20+
cd /tmp/build && ninja install
21+
rm -rf /tmp/build /tmp/swift-corelibs-libdispatch
22+
apt-get remove -y cmake ninja-build
23+
apt-get autoremove -y
24+
rm -r /var/lib/apt/lists/*

.github/workflows/pull_request.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
name: Test
1414
uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main
1515
with:
16-
linux_os_versions: '["noble", "jammy", "focal", "rhel-ubi9"]'
16+
linux_os_versions: '["noble", "jammy", "focal"]'
1717
linux_pre_build_command: |
1818
if command -v apt-get >/dev/null 2>&1 ; then # bookworm, noble, jammy, focal
1919
apt-get update -y
@@ -23,6 +23,10 @@ jobs:
2323
2424
# Debug symbols
2525
apt-get install -y libc6-dbg
26+
27+
apt-get install -y valgrind
28+
29+
./.github/workflows/dispatch.sh
2630
elif command -v dnf >/dev/null 2>&1 ; then # rhel-ubi9
2731
dnf update -y
2832
@@ -31,6 +35,8 @@ jobs:
3135
3236
# Debug symbols
3337
dnf debuginfo-install -y glibc
38+
39+
dnf install -y valgrind
3440
elif command -v yum >/dev/null 2>&1 ; then # amazonlinux2
3541
yum update -y
3642
@@ -40,10 +46,12 @@ jobs:
4046
# Debug symbols
4147
yum install -y yum-utils
4248
debuginfo-install -y glibc
49+
50+
yum install -y valgrind
4351
fi
44-
linux_build_command: 'swift test --no-parallel'
45-
linux_swift_versions: '["nightly-main", "nightly-6.2"]'
46-
windows_swift_versions: '["nightly-main"]'
52+
linux_build_command: 'swift build --build-tests -Xswiftc -sanitize=thread -Xcc -fsanitize=thread && ASAN_OPTIONS=detect_leaks=0 ./.build/debug/SwiftBuildPackageTests.xctest --testing-library swift-testing'
53+
linux_swift_versions: '["nightly-main"]'
54+
windows_swift_versions: '[]'
4755
windows_build_command: 'swift test --no-parallel'
4856
cmake-smoke-test:
4957
name: cmake-smoke-test

0 commit comments

Comments
 (0)