forked from eclipse-iceoryx/iceoryx
-
Notifications
You must be signed in to change notification settings - Fork 1
79 lines (66 loc) · 2.18 KB
/
experimental_build.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
# This is a basic workflow to help you get started with Actions
name: Experimental build
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build_job_latest_clang:
runs-on: ubuntu-latest
name: Build on latest Clang Release
steps:
- name: Install iceoryx dependencies
run: |
sudo apt-get update
sudo apt-get install -y libacl1-dev libncurses5-dev
- name: Install latest clang stable release
shell: bash
run: |
REPO_NAME="deb http://apt.llvm.org/focal/ llvm-toolchain-focal main"
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo add-apt-repository "${REPO_NAME}"
sudo apt-get update
sudo apt-get install -y clang
- name: Checkout
uses: actions/checkout@v2
- name: Build sources
continue-on-error: true
shell: bash
env:
CC: clang
CXX: clang++
run: |
echo $(clang --version)
sudo $GITHUB_WORKSPACE/tools/add_test_users.sh
$GITHUB_WORKSPACE/tools/iceoryx_build_test.sh build-test examples out-of-tree build-shared test-add-user
- name: Run all tests
continue-on-error: true
run: |
cd $GITHUB_WORKSPACE/build
tools/run_tests.sh all
build_job_gcc54:
runs-on: ubuntu-16.04
name: Build on Ubuntu 16.04
steps:
- name: compiler versions
run: |
echo $(gcc --version)
echo $(clang --version)
- name: Install iceoryx dependencies
run: |
sudo apt-get update
sudo apt-get install -y libacl1-dev libncurses5-dev
- name: Checkout
uses: actions/checkout@v2
- name: Build sources
continue-on-error: true
run: |
sudo $GITHUB_WORKSPACE/tools/add_test_users.sh
$GITHUB_WORKSPACE/tools/iceoryx_build_test.sh build-all out-of-tree test-add-user
- name: Run all tests
run: |
cd $GITHUB_WORKSPACE/build
tools/run_tests.sh all