-
Notifications
You must be signed in to change notification settings - Fork 36
54 lines (51 loc) · 1.63 KB
/
build-others.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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 }}