Skip to content

Commit 6eaffb9

Browse files
committed
debug core upload on macos
1 parent b6045aa commit 6eaffb9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/build_macos_arm64_wheels.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ jobs:
160160
- name: Setup core dump
161161
run: |
162162
mkdir -p tmp/core
163-
echo "tmp/core/core.%p" > /tmp/core_pattern
164-
sudo cp /tmp/core_pattern /proc/sys/kernel/core_pattern 2>/dev/null
163+
sudo sysctl kern.corefile=$PWD/tmp/core/core.%P
164+
sudo sysctl kern.coredump=1
165165
ulimit -c unlimited
166166
- name: Test wheel on all Python versions
167167
run: |

.github/workflows/build_macos_x86_wheels.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ jobs:
160160
- name: Setup core dump collection
161161
run: |
162162
mkdir -p tmp/core
163-
echo "tmp/core/core.%p" > /tmp/core_pattern
164-
sudo cp /tmp/core_pattern /proc/sys/kernel/core_pattern 2>/dev/null
163+
sudo sysctl kern.corefile=$PWD/tmp/core/core.%P
164+
sudo sysctl kern.coredump=1
165165
ulimit -c unlimited
166166
- name: Test wheel on all Python versions
167167
run: |

0 commit comments

Comments
 (0)