-
-
Notifications
You must be signed in to change notification settings - Fork 4
188 lines (184 loc) · 5.33 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
176
177
178
179
180
181
182
183
184
185
186
187
188
name: linux
on:
push:
pull_request:
schedule:
- cron: '0 7 * * SUN'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
tao:
permissions:
actions: read # for github/codeql-action/init to get workflow details
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/analyze to upload SARIF results
strategy:
fail-fast: false
matrix:
include:
- CC: gcc-7
CXX: g++-7
PackageDeps: g++-7
os: ubuntu-20.04
ruby: '2.5'
- CC: gcc-8
CXX: g++-8
PackageDeps: g++-8
os: ubuntu-20.04
ruby: '2.6'
- CC: gcc-9
CXX: g++-9
PackageDeps: g++-9
os: ubuntu-20.04
ruby: '2.7'
- CC: gcc-10
CXX: g++-10
PackageDeps: g++-10
os: ubuntu-20.04
ruby: '2.7'
- CC: gcc-11
CXX: g++-11
PackageDeps: g++-11
os: ubuntu-22.04
ruby: '3.0'
- CC: gcc-11
CXX: g++-11
PackageDeps: g++-11
os: ubuntu-22.04
ruby: '3.1'
- CC: gcc-12
CXX: g++-12
PackageDeps: g++-12
os: ubuntu-22.04
ruby: '3.2'
- feature: CodeQL
CC: gcc-11
CXX: g++-11
PackageDeps: g++-11
os: ubuntu-22.04
ruby: '3.1'
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} ${{ matrix.CXX }} ruby-${{ matrix.ruby }}
env:
DOC_ROOT: ${{ github.workspace }}/ACE
MPC_ROOT: ${{ github.workspace }}/ACE/MPC
RIDL_ROOT: ${{ github.workspace }}/ridl
CC: ${{ matrix.CC }}
CXX: ${{ matrix.CXX }}
steps:
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: checkout r2corba
uses: actions/checkout@v4
- name: checkout ACE_TAO
uses: actions/checkout@v4
with:
repository: DOCGroup/ACE_TAO
path: ${{ env.DOC_ROOT }}
ref: Latest_ACE8TAO4_Micro
- name: checkout MPC
uses: actions/checkout@v4
with:
repository: DOCGroup/MPC
path: ${{ env.MPC_ROOT }}
ref: Latest_ACE8TAO4_Micro
- name: checkout ridl
uses: actions/checkout@v4
with:
repository: RemedyIT/ridl
path: ${{ env.RIDL_ROOT }}
- name: Add Repo ${{ 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"
if: matrix.Repo != ''
- name: Add packages
run: |
sudo apt-get --yes update
sudo apt-get --yes install ${{ matrix.PackageDeps }}
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: cpp, ruby
if: matrix.feature == 'CodeQL'
- name: Run rake configure
run: |
rake configure
shell: pwsh
- name: Run rake build
run: |
rake build
shell: pwsh
- name: Run rake test
run: |
rake test
shell: pwsh
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
if: matrix.feature == 'CodeQL'
jacorb:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-20.04
ruby: 'jruby'
jacorb_version: '3.1'
java-version: '8'
java-package: 'jdk'
- os: ubuntu-20.04
ruby: 'jruby'
jacorb_version: '3.2'
java-version: '8'
java-package: 'jdk'
- os: ubuntu-20.04
ruby: 'jruby'
jacorb_version: '3.9'
java-version: '8'
java-package: 'jdk'
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }}-${{ matrix.ruby }}-jacorb-${{ matrix.jacorb_version }}-${{ matrix.java-package }}-${{ matrix.java-version }}
env:
JACORB_HOME: ${{ github.workspace }}/jacorb/jacorb-${{ matrix.jacorb_version }}
RIDL_ROOT: ${{ github.workspace }}/ridl
steps:
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
java-package: ${{ matrix.java-package }}
architecture: 'x64'
distribution: 'zulu'
- name: checkout r2corba
uses: actions/checkout@v4
- name: checkout ridl
uses: actions/checkout@v4
with:
repository: RemedyIT/ridl
path: ${{ env.RIDL_ROOT }}
- name: Download a file
uses: carlosperate/download-file-action@v2
id: download-jacorb
with:
file-url: 'https://www.jacorb.org/releases/${{ matrix.jacorb_version }}/jacorb-${{ matrix.jacorb_version }}-binary.zip'
file-name: 'jacorb-${{ matrix.jacorb_version }}.zip'
location: '${{ github.workspace }}'
- uses: montudor/action-zip@v1
with:
args: unzip -qq jacorb-${{ matrix.jacorb_version }}.zip -d jacorb
- name: Run rake configure
run: |
rake configure
- name: Run rake build
run: |
rake build
- name: Run rake test
run: |
rake test