Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get core dumps when Github Action CI fails #2193

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 20 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,35 +7,31 @@ on:
- 'ign-gazebo6'

jobs:
bionic-ci:
runs-on: ubuntu-latest
name: Ubuntu Bionic CI
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Compile and test
id: ci
uses: ignition-tooling/action-ignition-ci@bionic
with:
codecov-enabled: true
focal-ci:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
name: Ubuntu Focal CI
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Download build script
run: |
curl -o build.sh https://raw.githubusercontent.com/gazebo-tooling/action-gz-ci/focal/entrypoint.sh
chmod +x build.sh
- 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 "/cores/%e.%p.%t" > /proc/sys/kernel/core_pattern'
- name: Compile and test
id: ci
uses: ignition-tooling/action-ignition-ci@focal
jammy-ci:
runs-on: ubuntu-latest
name: Ubuntu Jammy CI
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Compile and test
id: ci
uses: ignition-tooling/action-ignition-ci@jammy
run: |
# Allow core dumps
ulimit -c unlimited
sudo -E ./build.sh "" true
sudo chmod -R 777 /cores
- uses: actions/upload-artifact@v3
if: ${{ failure() }} # Run only if something went wrong
with:
# per bug https://github.com/ignitionrobotics/ign-gazebo/issues/1409
cmake-args: '-DBUILD_DOCS=OFF'
name: cores
path: /cores
Loading