[pre-commit.ci] pre-commit autoupdate #1053
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: 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: Free-up space | |
run: | | |
sudo rm -rf /opt/hostedtoolcache/CodeQL | |
sudo rm -rf /usr/local/lib/android | |
- 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 }} |