diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dbc420bd19..2274efbd9a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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