Skip to content

Merge pull request #380 from jrl-umi3218/pre-commit-ci-update-config #996

Merge pull request #380 from jrl-umi3218/pre-commit-ci-update-config

Merge pull request #380 from jrl-umi3218/pre-commit-ci-update-config #996

Workflow file for this run

name: CI of mc_rtc with Docker
# This workflow checks the build-and-install script on base docker images
on:
push:
paths-ignore:
# Changes to those files don't mandate running CI
- ".gitlab-ci.yml"
- ".jrl-ci"
- ".github/workflows/package.yml"
- "debian/**"
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
build:
strategy:
fail-fast: false
matrix:
os: ["debian_buster", "ubuntu_22.04"]
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Build within Docker
run: |
echo "::group::Setup Dockerfile"
mkdir -p /tmp/mc-rtc-docker
cp -r `pwd` /tmp/mc-rtc-docker/source
cp .github/workflows/docker/Dockerfile.${{ matrix.os }} /tmp/mc-rtc-docker/Dockerfile
cd /tmp/mc-rtc-docker
echo "::endgroup::"
echo "::group::Dockerfile used to build mc_rtc"
cat Dockerfile
echo "::endgroup::"
echo "::group::Build base image"
docker build -t mc-rtc-ci-${{matrix.os}} .
echo "::endgroup::"
echo "::group::Run install"
docker run mc-rtc-ci-${{matrix.os}} /bin/bash -c 'cd /source/utils && ./build_and_install.sh --user-input false --build-benchmarks true --allow-root true'
echo "::endgroup::"
- name: Slack Notification
if: failure()
uses: archive/github-actions-slack@master
with:
slack-bot-user-oauth-access-token: ${{ secrets.SLACK_BOT_TOKEN }}
slack-channel: '#ci'
slack-text: >
[mc_rtc] Build *${{ matrix.os }}* failed on ${{ github.ref }}