Skip to content

Commit

Permalink
core: try get coredump
Browse files Browse the repository at this point in the history
  • Loading branch information
hardfist committed Jan 20, 2025
1 parent 6fdff96 commit c3a7f9d
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/test-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,25 @@ jobs:
- name: Install Dependencies
if: ${{steps.skip-ci.outputs.RESULT != 'true'}}
run: pnpm install

- name: step with crash
run: |
ulimit -c unlimited # Enable core dumps to be captured (must be in same run block)
sudo your_command_to_run # Excute with elemvated permissions (works with scripts)
sudo chmod -R +rwx /cores/* # Enable access to core dumps (doesn't need to be in same run block)
- uses: actions/upload-artifact@master # capture all crashes as build artifacts
with:
name: crashes
path: /cores
- name: test enabling cores
run: |
ulimit -c # should output 0 if disabled
ulimit -c unlimited
ulimit -c # should output 'unlimited' now
- name: test access to core dump directory
run: |
sudo touch /cores/test
ls /cores
sudo rm /cores/test
- name: Unit Test
if: ${{steps.skip-ci.outputs.RESULT != 'true'}}
run: pnpm run test:all
Expand Down

0 comments on commit c3a7f9d

Please sign in to comment.