forked from eclipse-iceoryx/iceoryx
-
Notifications
You must be signed in to change notification settings - Fork 1
75 lines (61 loc) · 2.27 KB
/
sanitize.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
# This workflow builds & runs test cases in iceoryx
name: Sanitize
# Triggers the workflow on push or pull request events but only for the master branch
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
clang-sanitize:
runs-on: ubuntu-20.04
steps:
- name: compiler versions
run: |
echo $(gcc --version)
echo $(clang --version)
- name: Install iceoryx dependencies
# Softwares installed in ubuntu-20.04 instance
# https://github.com/actions/virtual-environments/blob/master/images/linux/Ubuntu2004-README.md
run: sudo apt-get update && sudo apt-get install -y libacl1-dev libncurses5-dev
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: |
sudo $GITHUB_WORKSPACE/tools/add_test_users.sh
$GITHUB_WORKSPACE/tools/iceoryx_build_test.sh build-strict build-all sanitize clang test-add-user
- name: Run tests
run: |
cd $GITHUB_WORKSPACE/build
tools/run_tests.sh all
# This job builds & runs iceoryx tests (with sanitizer) in macos-10.15
clang-sanitize-macos:
runs-on: macos-latest
# Softwares installed in macos-10.15 instance
# https://github.com/actions/virtual-environments/blob/master/images/macos/macos-10.15-Readme.md
# Steps represent a sequence of tasks that will be executed as part of the job
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
run: |
$GITHUB_WORKSPACE/tools/iceoryx_build_test.sh build-strict build-all sanitize
- name: Run tests
run: |
cd $GITHUB_WORKSPACE/build
tools/run_tests.sh asan-only