File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed
Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change 6060
61616262
63+ - name : Enable core dumps
64+ if : matrix.name == 'linux'
65+ run : |
66+ ulimit -c unlimited
67+ echo '/tmp/core.%e.%p' | sudo tee /proc/sys/kernel/core_pattern
68+
63696470 if : matrix.os == 'windows-latest'
6571 with :
@@ -133,8 +139,23 @@ jobs:
133139
134140 - name : test sqlite-sync
135141 if : matrix.name == 'linux' || matrix.name == 'windows'
142+ continue-on-error : true # so workflow doesn't stop on segfault
136143 run : make test
137144
145+ - name : Run test and generate core dump
146+ if : matrix.name == 'linux'
147+ continue-on-error : true # so workflow doesn't stop on segfault
148+ run : |
149+ ./dist/main || echo "segfault occurred"
150+ ls -lh /tmp/core.*
151+
152+ - name : Upload core dump
153+ if : always() # upload even if previous step failed
154+ uses : actions/upload-artifact@v4
155+ with :
156+ name : core-dump
157+ path : /tmp/core.*
158+
138159 - name : test sqlite-sync + coverage
139160 if : matrix.name == 'macos'
140161 run : brew install lcov && make test COVERAGE=true
@@ -277,4 +298,4 @@ jobs:
277298 cloudsync-*-${{ steps.tag.outputs.version }}.tar.xz
278299 cloudsync-*-${{ steps.tag.outputs.version }}.tar.gz
279300 sqlite-*-sync-${{ steps.tag.outputs.version }}-wasm.zip
280- make_latest : true
301+ make_latest : true
You can’t perform that action at this time.
0 commit comments