-
-
Notifications
You must be signed in to change notification settings - Fork 3
208 lines (203 loc) · 6.93 KB
/
taox11.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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
name: taox11
on:
push:
branches:
- master
- v*
tags:
- AXCIOMA-v*
pull_request:
branches:
- master
- v*
schedule:
- cron: '0 7 * * SUN'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
env:
DOC_ROOT: ${{ github.workspace }}/ACE_TAO
ACE_ROOT: ${{ github.workspace }}/ACE_TAO/ACE
MPC_ROOT: ${{ github.workspace }}/ACE_TAO/MPC
TAO_ROOT: ${{ github.workspace }}/ACE_TAO/TAO
X11_BASE_ROOT: ${{ github.workspace }}/axcioma
RIDL_ROOT: ${{ github.workspace }}
TAOX11_ROOT: ${{ github.workspace }}/taox11
X11_BRANCH: master
ACETAOMPC_BRANCH: Latest_ACE8TAO4_Micro
jobs:
linux:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-20.04
CC: gcc-8
CXX: g++-8
ruby: '2.6'
PackageDeps: g++-8
- os: ubuntu-20.04
CC: gcc-9
CXX: g++-9
ruby: '2.6'
PackageDeps: g++-9
- os: ubuntu-20.04
CC: gcc-10
CXX: g++-10
ruby: '2.7'
PackageDeps: g++-10
- os: ubuntu-22.04
CC: gcc-11
CXX: g++-11
ruby: '3.0'
PackageDeps: g++-11
- os: ubuntu-22.04
CC: gcc-11
CXX: g++-11
ruby: '3.1'
PackageDeps: g++-11
- os: ubuntu-22.04
CC: gcc-12
CXX: g++-12
ruby: '3.2'
PackageDeps: g++-12
- os: ubuntu-24.04
CC: gcc-13
CXX: g++-13
ruby: '3.2'
PackageDeps: g++-13
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} ${{ matrix.CXX }} ruby-${{ matrix.ruby }}
env:
CC: ${{ matrix.CC }}
CXX: ${{ matrix.CXX }}
steps:
- if: contains(fromJson('["pull_request", "pull_request_target"]'), github.event_name) && github.repository_owner == 'RemedyIT'
run: |
echo "X11_BRANCH=${{ github.base_ref }}" >> $GITHUB_ENV
- if: contains(fromJson('["pull_request", "pull_request_target"]'), github.event_name) == false && github.repository_owner == 'RemedyIT'
run: |
echo "X11_BRANCH=${{ github.ref_name }}" >> $GITHUB_ENV
- uses: actions/checkout@v4
- name: checkout ACE_TAO
uses: actions/checkout@v4
with:
repository: DOCGroup/ACE_TAO
path: ${{ env.DOC_ROOT }}
ref: ${{ env.ACETAOMPC_BRANCH }}
- name: checkout MPC
uses: actions/checkout@v4
with:
repository: DOCGroup/MPC
path: ${{ env.MPC_ROOT }}
ref: ${{ env.ACETAOMPC_BRANCH }}
- name: checkout taox11
uses: actions/checkout@v4
with:
repository: RemedyIT/taox11
path: ${{ env.TAOX11_ROOT }}
ref: ${{ env.X11_BRANCH }}
- name: checkout axcioma
uses: actions/checkout@v4
with:
repository: RemedyIT/axcioma
path: ${{ env.X11_BASE_ROOT }}
ref: ${{ env.X11_BRANCH }}
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Add repository ${{ matrix.Repo }}
if: matrix.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"
- name: Add packages
run: |
sudo apt-get --yes update
sudo apt-get --yes install libxerces-c-dev libssl-dev ${{ matrix.PackageDeps }}
- name: Run brix11 configure
run: |
$X11_BASE_ROOT/bin/brix11 -D RIDL_ROOT=$RIDL_ROOT/lib configure -W aceroot=$ACE_ROOT -W taoroot=$TAO_ROOT -W mpcroot=$MPC_ROOT
- name: Print brix11 configuration
run: |
$X11_BASE_ROOT/bin/brix11 -D RIDL_ROOT=$RIDL_ROOT/lib env -- configure -P
- name: Run brix11 gen build
run: |
$X11_BASE_ROOT/bin/brix11 -D RIDL_ROOT=$RIDL_ROOT/lib gen build axcioma/workspace.mwc -- gen build $TAOX11_ROOT/examples -- gen build $TAOX11_ROOT/orbsvcs/tests -- gen build $TAOX11_ROOT/tests
- name: Run brix11 make
run: |
$X11_BASE_ROOT/bin/brix11 -D RIDL_ROOT=$RIDL_ROOT/lib make -N -d $X11_BASE_ROOT -- make -N -d $TAOX11_ROOT/examples -- make -N -d $TAOX11_ROOT/orbsvcs/tests -- make -N -d $TAOX11_ROOT/tests
- name: Run brix11 tests
run: |
$X11_BASE_ROOT/bin/brix11 run list -l $TAOX11_ROOT/bin/taox11_tests.lst -r $TAOX11_ROOT
windows:
strategy:
fail-fast: false
matrix:
include:
- os: windows-2019
ruby: '2.6'
project_type: vs2019
- os: windows-2019
ruby: '3.0'
project_type: vs2019
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} ruby-${{ matrix.ruby }} ${{ matrix.project_type }}
steps:
- if: contains(fromJson('["pull_request", "pull_request_target"]'), github.event_name) && github.repository_owner == 'RemedyIT'
run: |
echo "X11_BRANCH=${{ github.base_ref }}" >> $GITHUB_ENV
- if: contains(fromJson('["pull_request", "pull_request_target"]'), github.event_name) == false && github.repository_owner == 'RemedyIT'
run: |
echo "X11_BRANCH=${{ github.ref_name }}" >> $GITHUB_ENV
- uses: actions/checkout@v4
- name: checkout ACE_TAO
uses: actions/checkout@v4
with:
repository: DOCGroup/ACE_TAO
path: ${{ env.DOC_ROOT }}
ref: ${{ env.ACETAOMPC_BRANCH }}
- name: checkout MPC
uses: actions/checkout@v4
with:
repository: DOCGroup/MPC
path: ${{ env.MPC_ROOT }}
ref: ${{ env.ACETAOMPC_BRANCH }}
- name: checkout taox11
uses: actions/checkout@v4
with:
repository: RemedyIT/taox11
path: ${{ env.TAOX11_ROOT }}
ref: ${{ env.X11_BRANCH }}
- name: checkout axcioma
uses: actions/checkout@v4
with:
repository: RemedyIT/axcioma
path: ${{ env.X11_BASE_ROOT }}
ref: ${{ env.X11_BRANCH }}
- uses: ilammy/msvc-dev-cmd@v1
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- uses: shogo82148/actions-setup-perl@v1
with:
distribution: strawberry
- name: Run brix11 configure
run: |
%X11_BASE_ROOT%\bin\brix11 -t ${{ matrix.project_type }} configure -W aceroot=%ACE_ROOT% -W taoroot=%TAO_ROOT% -W mpcroot=%MPC_ROOT%
shell: cmd
- name: Print brix11 configuration
run: |
%X11_BASE_ROOT%/bin/brix11 env -- configure -P
shell: cmd
- name: Run brix11 gen build
run: |
%X11_BASE_ROOT%/bin/brix11 gen build axcioma/workspace.mwc -- gen build %TAOX11_ROOT%/examples -- gen build %TAOX11_ROOT%/orbsvcs/tests -- gen build %TAOX11_ROOT%/tests
shell: cmd
- name: Run brix11 make
run: |
%X11_BASE_ROOT%/bin/brix11 make -N -d %X11_BASE_ROOT% -- make -N -d %TAOX11_ROOT%/examples -- make -N -d %TAOX11_ROOT%/orbsvcs/tests -- make -N -d %TAOX11_ROOT%/tests
shell: cmd