-
Notifications
You must be signed in to change notification settings - Fork 20
80 lines (70 loc) · 2.01 KB
/
colibri-core.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: C/C++ CI
on:
push:
brances:
- master
- develop
paths:
- 'src/**'
- 'include/**'
- '.github/workflows/**'
jobs:
notification:
runs-on: ubuntu-latest
name: Notify start to gitlama
steps:
- name: IRC notification
uses: Gottox/irc-message-action@v2
with:
server: irc.uvt.nl
channel: '#gitlama'
nickname: GitHub
message: |-
${{ github.actor }} started a build of colibri-core
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
build:
needs: notification
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
compiler: [g++,clang++]
steps:
- uses: actions/[email protected]
- name: Install Build Environment
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt-get install pkg-config autoconf-archive
fi
- name: Build and install Colibri-Core
env:
CXX: ${{ matrix.compiler }}
run: |
bash bootstrap
./configure
make
sudo make install
- name: test
env:
CXX: ${{ matrix.compiler }}
run: colibri-test
continue-on-error: true
- name: Notify IRC of failure
if: ${{ failure() }}
uses: Gottox/irc-message-action@v2
with:
server: irc.uvt.nl
channel: '#gitlama'
nickname: GitHub
message: "Building colibri-core with ${{ matrix.compiler }} by ${{ github.actor }} on ${{ matrix.os }}: \u00034FAIL\u0003"
- name: Notify IRC of success
if: ${{ success() }}
uses: Gottox/irc-message-action@v2
with:
server: irc.uvt.nl
channel: '#gitlama'
nickname: GitHub
message: "Building colibri-core with ${{ matrix.compiler }} by ${{ github.actor }} on ${{ matrix.os }}: \u00033SUCCESS\u0003"