Testing Core dumps #149
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |