Skip to content

Commit ae68073

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

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/main.yml

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

0 commit comments

Comments
 (0)