Compare commits

...

5 Commits

Author SHA1 Message Date
Sebastian Ullrich
2e1a8e73dc restrict again 2025-03-21 16:10:26 +01:00
Sebastian Ullrich
b1a495f78f try on stack overflow test 2025-03-21 14:30:40 +01:00
Sebastian Ullrich
9204a7f9dd fix? 2025-03-21 14:24:48 +01:00
Sebastian Ullrich
8f8caedb16 fix 2025-03-21 14:14:30 +01:00
Sebastian Ullrich
d52afba32d chore: CI: bring back coredump tracing 2025-03-21 14:11:28 +01:00
2 changed files with 13 additions and 0 deletions

View File

@@ -72,6 +72,9 @@ jobs:
with:
# the default is to use a virtual merge commit between the PR and master: just use the PR
ref: ${{ github.event.pull_request.head.sha }}
- name: Open Nix shell once
run: true
if: runner.os == 'Linux'
# Do check out some CI-relevant files from virtual merge commit to accommodate CI changes on
# master (as the workflow files themselves are always taken from the merge)
# (needs to be after "Install *" to use the right shell)
@@ -130,6 +133,7 @@ jobs:
echo "NPROC=$(nproc 2>/dev/null || sysctl -n hw.logicalcpu 2>/dev/null || echo 4)" >> $GITHUB_ENV
- name: Build
run: |
ulimit -c unlimited # coredumps
[ -d build ] || mkdir build
cd build
# arguments passed to `cmake`
@@ -197,6 +201,7 @@ jobs:
- name: Test
id: test
run: |
ulimit -c unlimited # coredumps
time ctest --preset ${{ matrix.CMAKE_PRESET || 'release' }} --test-dir build/stage1 -j$NPROC --output-junit test-results.xml ${{ matrix.CTEST_OPTIONS }}
if: (matrix.wasm || !matrix.cross) && inputs.check-level >= 1
- name: Test Summary
@@ -232,3 +237,10 @@ jobs:
if: matrix.name == 'Linux' && inputs.check-level >= 1
- name: CCache stats
run: ccache -s
- name: Show stacktrace for coredumps
if: failure() && runner.os == 'Linux'
run: |
for c in $(find . -name core); do
progbin="$(file $c | sed "s/.*execfn: '\([^']*\)'.*/\1/")"
echo bt | $GDB/bin/gdb -q $progbin $c || true
done

View File

@@ -63,6 +63,7 @@
GLIBC_DEV = pkgsDist.glibc.dev;
GCC_LIB = pkgsDist.gcc.cc.lib;
ZLIB = pkgsDist.zlib;
# for CI coredumps
GDB = pkgsDist.gdb;
});
in {