forked from eclipse-iceoryx/iceoryx
-
Notifications
You must be signed in to change notification settings - Fork 1
105 lines (85 loc) · 3.41 KB
/
build-test.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# This workflow builds & runs test cases in iceoryx
name: Build & Test
# Triggers the workflow on push or pull request events but only for the master branch
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This job builds & runs iceoryx tests in ubuntu-18.04
iceoryx-ubuntu:
runs-on: ubuntu-18.04
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: compiler versions
run: |
echo $(gcc --version)
echo $(clang --version)
- name: Install iceoryx dependencies
# Softwares installed in ubuntu-18.04 instance
# https://github.com/actions/virtual-environments/blob/master/images/linux/Ubuntu1804-README.md
run: |
sudo apt-get update
sudo apt-get install -y libacl1-dev libncurses5-dev
- name: Checkout
uses: actions/checkout@v2
- name: Build sources
run: |
sudo $GITHUB_WORKSPACE/tools/add_test_users.sh
$GITHUB_WORKSPACE/tools/iceoryx_build_test.sh build-strict build-all out-of-tree build-shared test-add-user
- name: Build debian package
run: |
$GITHUB_WORKSPACE/tools/iceoryx_build_test.sh package
- name: Run all tests
run: |
cd $GITHUB_WORKSPACE/build
tools/run_tests.sh all
- name: Build RouDi examples without TOML support
run: |
$GITHUB_WORKSPACE/tools/iceoryx_build_test.sh out-of-tree examples toml-config-off clean
# This job builds & runs iceoryx tests in macos-10.14
iceoryx-macos:
runs-on: macos-10.14
# Softwares installed in macos-latest instance
# https://github.com/actions/virtual-environments/blob/master/images/macos/macos-10.14-Readme.md
steps:
- name: Checkout
uses: actions/checkout@v2
- name: compiler version
run: |
echo $(clang --version)
- name: Build and install dependencies
# tinfo library which is required by iceoryx_introspection isn't available in mac
run: |
cd $GITHUB_WORKSPACE
mkdir -p build
cd build
git clone https://github.com/mirror/ncurses.git
cd ncurses
git checkout v6.2
./configure --prefix=$GITHUB_WORKSPACE/build/install/prefix/ --exec-prefix=$GITHUB_WORKSPACE/build/install/prefix/ --with-termlib
make
make install
- name: Build sources
run: |
$GITHUB_WORKSPACE/tools/iceoryx_build_test.sh build-strict build-all out-of-tree
- name: Run tests, excluding timing_tests
run: |
cd $GITHUB_WORKSPACE/build
make all_tests
- name: Build RouDi examples without TOML support
run: |
$GITHUB_WORKSPACE/tools/iceoryx_build_test.sh out-of-tree examples toml-config-off clean
# This job builds & runs iceoryx tests in Windows 2019
iceoryx-windows:
runs-on: windows-2019
# Softwares installed in windows instance
# https://github.com/actions/virtual-environments/blob/master/images/win/Windows2019-Readme.md
steps:
- name : Checkout
uses: actions/checkout@v2
- name: Build sources
run: |
cmake -Bbuild -Hiceoryx_meta -DBUILD_TEST=ON -DINTROSPECTION=OFF -DBINDING_C=ON -DEXAMPLES=ON && cmake --build build