Skip to content

Commit 6083b46

Browse files
committed
capture coredump
Signed-off-by: Jay Lee <[email protected]>
1 parent ee97431 commit 6083b46

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/main.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,19 @@ jobs:
5454
sudo apt install -y musl-tools
5555
fi
5656
- name: test
57-
run: sh ci/run.sh
57+
run: |
58+
ulimit -c unlimited
59+
echo "$PWD/core-dump/corefile-%e-%p-%t" | sudo tee /proc/sys/kernel/core_pattern
60+
mkdir core-dump
61+
sh ci/run.sh
62+
- name: upload coredump
63+
uses: actions/upload-artifact@v2
64+
if: ${{ failure() }}
65+
with:
66+
name: coredump
67+
path: |
68+
./target/x86_64-unknown-linux-musl/debug/deps/tikv_jemalloc_sys-*
69+
./core-dump/*
5870
test_bench:
5971
name: Benchmarks using x86_64-unknown-linux-gnu (nightly)
6072
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)