Skip to content

Commit b8b2267

Browse files
committed
try more
1 parent 30486f9 commit b8b2267

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,20 @@ jobs:
104104
if: startsWith(matrix.config.os, 'Ubuntu')
105105
env:
106106
WEBGPU_USE_CI_AVAILABLE_RENDERER: "1"
107-
run: gdb -return-child-result -batch -ex "run" -ex "thread apply all bt" --args node test/test.js
107+
NODE_OPTIONS: "--report-on-fatalerror --report-on-signal --report-signal=SIGABRT"
108+
run: |
109+
ulimit -c unlimited
110+
sudo sysctl -w kernel.core_pattern=core.%p
111+
npm test || {
112+
COREFILE=$(ls core.* 2>/dev/null | head -n 1)
113+
if [ -f "$COREFILE" ]; then
114+
sudo apt-get install -y gdb
115+
gdb -ex "bt full" -ex "quit" $(which node) "$COREFILE"
116+
else
117+
echo "No core dump found"
118+
fi
119+
exit 1
120+
}
108121
109122
- name: Upload Artifact ⬆️
110123
uses: actions/upload-artifact@v4

build/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export const kDepotToolsPath = path.join(kCwd, 'third_party', 'depot_tools');
55
export const kDawnPath = `${kCwd}/third_party/dawn`;
66
export const kOutDir = `${kCwd}/out`;
77
export const kBuildPath = `${kOutDir}/cmake-release`;
8-
export const kConfig = process.env.CMAKE_BUILD_TYPE ?? 'Debug';
8+
export const kConfig = process.env.CMAKE_BUILD_TYPE ?? 'Release';
99

1010
export const isMac = process.platform === 'darwin';
1111
export const isWin = process.platform === 'win32';

0 commit comments

Comments
 (0)