This repository has been archived by the owner on May 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
175 lines (173 loc) · 6.65 KB
/
linux.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
name: linux
on:
push:
pull_request:
schedule:
- cron: '0 1 * * SUN'
jobs:
build:
strategy:
matrix:
include:
- CC: gcc-4.8
CXX: g++-4.8
PackageDeps: g++-4.8
platform_file: include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU
os: ubuntu-16.04
- CC: gcc-6
CXX: g++-6
PackageDeps: g++-6
platform_file: include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU
os: ubuntu-18.04
- CC: gcc-7
CXX: g++-7
PackageDeps: g++-7
platform_file: include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU
os: ubuntu-18.04
- CC: gcc-8
CXX: g++-8
PackageDeps: g++-8
platform_file: include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU
os: ubuntu-18.04
- CC: gcc-9
CXX: g++-9
PackageDeps: g++-9
platform_file: include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU
os: ubuntu-18.04
- CC: gcc-10
CXX: g++-10
PackageDeps: g++-10
platform_file: include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU
os: ubuntu-20.04
- CC: clang-5.0
CXX: clang++-5.0
PackageDeps: clang-5.0
platform_file: include $(ACE_ROOT)/include/makeinclude/platform_linux_clang.GNU
os: ubuntu-16.04
- CC: clang-6.0
CXX: clang++-6.0
PackageDeps: clang-6.0
platform_file: include $(ACE_ROOT)/include/makeinclude/platform_linux_clang.GNU
os: ubuntu-18.04
- CC: clang-7
CXX: clang++-7
PackageDeps: clang-7
platform_file: include $(ACE_ROOT)/include/makeinclude/platform_linux_clang.GNU
os: ubuntu-18.04
- CC: clang-8
CXX: clang++-8
PackageDeps: clang-8
platform_file: include $(ACE_ROOT)/include/makeinclude/platform_linux_clang.GNU
os: ubuntu-18.04
- CC: clang-9
CXX: clang++-9
PackageDeps: clang-9
Repo: llvm-toolchain-$(lsb_release -cs)-9
platform_file: include $(ACE_ROOT)/include/makeinclude/platform_linux_clang.GNU
os: ubuntu-18.04
- CC: clang-10
CXX: clang++-10
PackageDeps: clang-10
Repo: llvm-toolchain-$(lsb_release -cs)-10
platform_file: include $(ACE_ROOT)/include/makeinclude/platform_linux_clang.GNU
os: ubuntu-20.04
- feature: LwCCM
CC: gcc-10
CXX: g++-10
PackageDeps: g++-10
platform_file: include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU
os: ubuntu-18.04
optional_feature: ccm_lw=1
- feature: NoEvent
CC: gcc-10
CXX: g++-10
PackageDeps: g++-10
platform_file: include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU
os: ubuntu-18.04
optional_feature: ccm_noevent=1
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} ${{ matrix.CXX }} ${{ matrix.feature }}
env:
DOC_ROOT: ${{ github.workspace }}/ACE_TAO
ACE_ROOT: ${{ github.workspace }}/ACE_TAO/ACE
TAO_ROOT: ${{ github.workspace }}/ACE_TAO/TAO
MPC_ROOT: ${{ github.workspace }}/ACE_TAO/MPC
CIAO_ROOT: ${{ github.workspace }}
DANCE_ROOT: ${{ github.workspace }}/DAnCE
DDS_ROOT: ${{ github.workspace }}/OpenDDS
CC: ${{ matrix.CC }}
CXX: ${{ matrix.CXX }}
steps:
- name: checkout CIAO
uses: actions/checkout@v2
- name: checkout ACE_TAO
uses: actions/checkout@v2
with:
repository: DOCGroup/ACE_TAO
path: ${{ env.DOC_ROOT }}
ref: ace6tao2
- name: checkout MPC
uses: actions/checkout@v2
with:
repository: DOCGroup/MPC
path: ${{ env.MPC_ROOT }}
- name: checkout DAnCE
uses: actions/checkout@v2
with:
repository: DOCGroup/DAnCE
path: ${{ env.DANCE_ROOT }}
- name: checkout OpenDDS
uses: actions/checkout@v2
with:
repository: objectcomputing/OpenDDS
path: ${{ env.DDS_ROOT }}
- name: Add Repo
run: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
sudo apt-add-repository "deb http://apt.llvm.org/$(lsb_release -cs)/ ${{ matrix.Repo }} main"
if: matrix.Repo != ''
- name: Add packages
run: |
sudo apt-get --yes update
sudo apt-get --yes install libxerces-c-dev libssl-dev ${{ matrix.PackageDeps }}
- name: create $ACE_ROOT/ace/config.h
run: |
'#include "ace/config-linux.h"' > ${env:ACE_ROOT}/ace/config.h
shell: pwsh
- name: create $ACE_ROOT/include/makeinclude/platform_macros.GNU
run: |
'ipv6=1' > ${env:ACE_ROOT}/include/makeinclude/platform_macros.GNU
'xerces3=1' >> ${env:ACE_ROOT}/include/makeinclude/platform_macros.GNU
'ssl=1' >> ${env:ACE_ROOT}/include/makeinclude/platform_macros.GNU
'dds4ccm_opendds=1' >> ${env:ACE_ROOT}/include/makeinclude/platform_macros.GNU
shell: pwsh
- name: add optional optional macros
run: |
'${{ matrix.optional_macros }}' >> ${env:ACE_ROOT}/include/makeinclude/platform_macros.GNU
shell: pwsh
if: matrix.optional_macros != ''
- name: extend $ACE_ROOT/include/makeinclude/platform_macros.GNU
run: |
'${{ matrix.platform_file }}' >> ${env:ACE_ROOT}/include/makeinclude/platform_macros.GNU
shell: pwsh
- name: create $ACE_ROOT/bin/MakeProjectCreator/config/default.features
run: |
'ipv6=1' > ${env:ACE_ROOT}/bin/MakeProjectCreator/config/default.features
'dds4ccm_opendds=1' >> ${env:ACE_ROOT}/bin/MakeProjectCreator/config/default.features
'dds_suppress_anys=0' >> ${env:ACE_ROOT}/bin/MakeProjectCreator/config/default.features
'xerces3=1' >> ${env:ACE_ROOT}/bin/MakeProjectCreator/config/default.features
'ssl=1' >> ${env:ACE_ROOT}/bin/MakeProjectCreator/config/default.features
shell: pwsh
- name: add optional optional feature
run: |
'${{ matrix.optional_feature }}' >> ${env:ACE_ROOT}/bin/MakeProjectCreator/config/default.features
if: matrix.optional_feature != ''
shell: pwsh
- name: Run mwc.pl on $(CIAO_ROOT)/CIAO_TAO_DAnCE_OpenDDS.mwc
run: |
perl ${env:ACE_ROOT}/bin/mwc.pl -type gnuace ${env:CIAO_ROOT}/CIAO_TAO_DAnCE_OpenDDS.mwc -workers 4
shell: pwsh
- name: Build CIAO_TAO_DAnCE_OpenDDS project
run: |
make -j 6 -C ${env:CIAO_ROOT}
shell: pwsh