Skip to content

Testing Core dumps #149

Testing Core dumps

Testing Core dumps #149

Workflow file for this run

name: Ubuntu CI
on:
pull_request:
push:
branches:
- 'ign-gazebo6'
jobs:
focal-ci:
runs-on: ubuntu-latest
name: Ubuntu Focal CI
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set cores to get stored in ./cores
run: |
sudo mkdir ./cores
sudo chmod 777 ./cores
# Core filenames will be of the form executable.pid.timestamp:
sudo bash -c "echo \"$PWD/cores/%e.%p.%t\" > /proc/sys/kernel/core_pattern"
- name: Compile and test
id: ci
uses: azeey/action-gz-ci@focal_core_dump
- name: Fix core permissions
if: ${{ failure() }} # Run only if something went wrong
run: sudo chmod -R 777 ./cores
- uses: actions/upload-artifact@v3
if: ${{ failure() }} # Run only if something went wrong
with:
name: cores
path: "${{ github.workspace }}/cores"