diff --git a/.github/actions/test-driver/action.yml b/.github/actions/test-driver/action.yml index f56126095e..81bac5c9f5 100644 --- a/.github/actions/test-driver/action.yml +++ b/.github/actions/test-driver/action.yml @@ -24,7 +24,9 @@ runs: shell: bash - id: run-test-driver run: | + ulimit -c unlimited # Enable core dumps to be captured (must be in same run block) git config --global --add safe.directory $GITHUB_WORKSPACE cd test ./test_driver.sh --testtype CUSTOM --env env/docker.sh --tpls --sunrealtype ${{ inputs.precision }} --indexsize ${{ inputs.indexsize }} + sudo chmod -R +rwx /cores/* # Enable access to core dumps (doesn't need to be in same run block) shell: bash diff --git a/.github/workflows/double-precision.yml b/.github/workflows/double-precision.yml index 3b04b0151b..876dcac893 100644 --- a/.github/workflows/double-precision.yml +++ b/.github/workflows/double-precision.yml @@ -49,3 +49,10 @@ jobs: name: output_files path: | ${{ github.workspace }}/test/build_*/Testing/ + - name: Archive coredump + uses: actions/upload-artifact@v3 + if: failure() + with: + name: coredump + path: | + /cores diff --git a/.github/workflows/extended-precision.yml b/.github/workflows/extended-precision.yml index dfb021dc66..b043d1d4c1 100644 --- a/.github/workflows/extended-precision.yml +++ b/.github/workflows/extended-precision.yml @@ -45,3 +45,11 @@ jobs: name: output_files path: | ${{ github.workspace }}/test/build_*/Testing/ + - name: Archive coredump + uses: actions/upload-artifact@v3 + if: failure() + with: + name: coredump + path: | + /cores + \ No newline at end of file diff --git a/.github/workflows/single-precision.yml b/.github/workflows/single-precision.yml index a769b09729..8a6a6942fc 100644 --- a/.github/workflows/single-precision.yml +++ b/.github/workflows/single-precision.yml @@ -45,3 +45,11 @@ jobs: name: output_files path: | ${{ github.workspace }}/test/build_*/Testing/ + - name: Archive coredump + uses: actions/upload-artifact@v3 + if: failure() + with: + name: coredump + path: | + /cores + \ No newline at end of file