This repository was archived by the owner on Feb 28, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 30
389 lines (354 loc) · 16 KB
/
test-docker-linux-intel.yml
File metadata and controls
389 lines (354 loc) · 16 KB
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
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
# -----------------------------------------------------------------------------
# DO NOT EDIT! Generated from scripts/helper/templates/*.
#
# This file is part of the xPack distribution.
# (https://xpack.github.io)
# Copyright (c) 2021 Liviu Ionescu.
#
# Permission to use, copy, modify, and/or distribute this software
# for any purpose is hereby granted, under the terms of the MIT license.
# -----------------------------------------------------------------------------
# https://help.github.com/en/actions
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows#workflow_dispatch
# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_dispatch
# https://docs.github.com/en/rest/reference/actions#create-a-workflow-dispatch-event
# -----------------------------------------------------------------------------
# https://github.com/docker-library/official-images#architectures-other-than-amd64
# Debian versions:
# - 8 jessie
# - 9 stretch
# - 10 buster
# Ubuntu releases
# - 12.04 LTS (Precise Pangolin)
# - 14.04 LTS (Trusty Tahr)
# - 16.04 LTS (Xenial Xerus)
# - 18.04 LTS (Bionic Beaver)
# - 20.04 LTS (Focal Fossa)
# -----------------------------------------------------------------------------
name: 'Test xPack GNU RISC-V Embedded GCC on Intel Docker platforms'
on:
workflow_dispatch:
inputs:
base_url:
description: 'The folder part of the URL where binaries are stored'
required: false
default: 'release'
version:
description: 'The semver of the release'
required: false
default: 'current'
# The scripts are executed in the Docker context by GitHub Actions,
# so `native-test.sh` should be fine, it already takes care of updates.
jobs:
# https://en.wikipedia.org/wiki/Ubuntu_version_history
# https://hub.docker.com/_/ubuntu
# The ubuntu:12.04 image fails to update.
ubuntu-x64:
name: 'x64 GNU RISC-V Embedded GCC ${{ github.event.inputs.version }} test on Ubuntu 20, 18, 16, 14 stable'
runs-on: ubuntu-latest
steps:
- name: 'Machine'
run: uname -a
- name: 'Checkout'
uses: actions/checkout@v2
with:
fetch-depth: 3
submodules: true
- name: 'Ubuntu 20.04 x64'
uses: docker://ubuntu:20.04
with:
entrypoint: /bin/bash
args: /github/workspace/scripts/helper/tests/native-test.sh --image ubuntu:20.04 --version ${{ github.event.inputs.version }} --base-url ${{ github.event.inputs.base_url }}
- name: 'Ubuntu 18.04 x64'
uses: docker://ubuntu:18.04
with:
entrypoint: /bin/bash
args: /github/workspace/scripts/helper/tests/native-test.sh --image ubuntu:18.04 --version ${{ github.event.inputs.version }} --base-url ${{ github.event.inputs.base_url }}
- name: 'Ubuntu 16.04 x64'
uses: docker://ubuntu:16.04
with:
entrypoint: /bin/bash
args: /github/workspace/scripts/helper/tests/native-test.sh --image ubuntu:16.04 --version ${{ github.event.inputs.version }} --base-url ${{ github.event.inputs.base_url }}
- name: 'Ubuntu 14.04 x64'
uses: docker://ubuntu:14.04
with:
entrypoint: /bin/bash
args: /github/workspace/scripts/helper/tests/native-test.sh --image ubuntu:14.04 --version ${{ github.event.inputs.version }} --base-url ${{ github.event.inputs.base_url }}
# https://en.wikipedia.org/wiki/Debian_version_history
# https://hub.docker.com/_/debian
debian-x64:
name: 'x64 GNU RISC-V Embedded GCC ${{ github.event.inputs.version }} test on Debian 10, 9, 8 stable'
runs-on: ubuntu-latest
steps:
- name: 'Machine'
run: uname -a
- name: 'Checkout'
uses: actions/checkout@v2
with:
fetch-depth: 3
submodules: true
- name: 'Debian 10 x64'
uses: docker://debian:buster
with:
entrypoint: /bin/bash
args: /github/workspace/scripts/helper/tests/native-test.sh --image debian:buster --version ${{ github.event.inputs.version }} --base-url ${{ github.event.inputs.base_url }}
- name: 'Debian 9 x64'
uses: docker://debian:stretch
with:
entrypoint: /bin/bash
args: /github/workspace/scripts/helper/tests/native-test.sh --image debian:stretch --version ${{ github.event.inputs.version }} --base-url ${{ github.event.inputs.base_url }}
- name: 'Debian 8 x64'
uses: docker://debian:jessie
with:
entrypoint: /bin/bash
args: /github/workspace/scripts/helper/tests/native-test.sh --image debian:jessie --version ${{ github.event.inputs.version }} --base-url ${{ github.event.inputs.base_url }}
# End of life. See RedHat.
# https://en.wikipedia.org/wiki/CentOS
# https://hub.docker.com/_/centos
# `-static` disabled, there is no static libc.a.
# centos-x64:
# name: 'x64 GNU RISC-V Embedded GCC ${{ github.event.inputs.version }} test on CentOS 8, 7 stable'
# runs-on: ubuntu-latest
# steps:
# - name: 'Checkout'
# uses: actions/checkout@v2
# with:
# fetch-depth: 3
# submodules: true
# - name: 'CentOS 8 x64'
# uses: docker://centos:8
# with:
# entrypoint: /bin/bash
# args: /github/workspace/scripts/helper/tests/native-test.sh --image centos:8 --version ${{ github.event.inputs.version }} --base-url ${{ github.event.inputs.base_url }}
# - name: 'CentOS 7 x64'
# uses: docker://centos:7
# with:
# entrypoint: /bin/bash
# args: /github/workspace/scripts/helper/tests/native-test.sh --image centos:7 --version ${{ github.event.inputs.version }} --base-url ${{ github.event.inputs.base_url }}
# https://hub.docker.com/r/i386/centos
# docker://i386/centos:7 - fails not finding -lc
# docker://i386/centos:8 - not available
# https://hub.docker.com/r/redhat/ubi8
# `-static` disabled, there is no static libc.a.
redhat-x64:
name: 'x64 GNU RISC-V Embedded GCC ${{ github.event.inputs.version }} test on RedHat 8 stable'
runs-on: ubuntu-latest
steps:
- name: 'Machine'
run: uname -a
- name: 'Checkout'
uses: actions/checkout@v2
with:
fetch-depth: 3
submodules: true
- name: 'RedHat 8 x64'
uses: docker://redhat/ubi8
with:
entrypoint: /bin/bash
args: /github/workspace/scripts/helper/tests/native-test.sh --image redhat/ubi8 --version ${{ github.event.inputs.version }} --base-url ${{ github.event.inputs.base_url }}
# https://en.wikipedia.org/wiki/Fedora_version_history
# https://hub.docker.com/_/fedora
# `-static` disabled, there is no static libc.a.
fedora-x64:
name: 'x64 GNU RISC-V Embedded GCC ${{ github.event.inputs.version }} test on Fedora 35, 33, 30, 25, 20, stable'
runs-on: ubuntu-latest
steps:
- name: 'Machine'
run: uname -a
- name: 'Checkout'
uses: actions/checkout@v2
with:
fetch-depth: 3
submodules: true
- name: 'Fedora 35 x64'
uses: docker://fedora:35
with:
entrypoint: /bin/bash
args: /github/workspace/scripts/helper/tests/native-test.sh --image fedora:35 --version ${{ github.event.inputs.version }} --base-url ${{ github.event.inputs.base_url }}
- name: 'Fedora 33 x64'
uses: docker://fedora:33
with:
entrypoint: /bin/bash
args: /github/workspace/scripts/helper/tests/native-test.sh --image fedora:33 --version ${{ github.event.inputs.version }} --base-url ${{ github.event.inputs.base_url }}
- name: 'Fedora 30 x64'
uses: docker://fedora:30
with:
entrypoint: /bin/bash
args: /github/workspace/scripts/helper/tests/native-test.sh --image fedora:30 --version ${{ github.event.inputs.version }} --base-url ${{ github.event.inputs.base_url }}
- name: 'Fedora 25 x64'
uses: docker://fedora:25
with:
entrypoint: /bin/bash
args: /github/workspace/scripts/helper/tests/native-test.sh --image fedora:25 --version ${{ github.event.inputs.version }} --base-url ${{ github.event.inputs.base_url }}
- name: 'Fedora 20 x64'
uses: docker://fedora:20
with:
entrypoint: /bin/bash
args: /github/workspace/scripts/helper/tests/native-test.sh --image fedora:20 --version ${{ github.event.inputs.version }} --base-url ${{ github.event.inputs.base_url }}
# https://en.wikipedia.org/wiki/OpenSUSE#Releases
# https://hub.docker.com/u/opensuse
# `-static` disabled, there is no static libc.a.
opensuse-x64:
name: 'x64 GNU RISC-V Embedded GCC ${{ github.event.inputs.version }} test on OpenSUSE 15, 13 stable'
runs-on: ubuntu-latest
steps:
- name: 'Machine'
run: uname -a
- name: 'Checkout'
uses: actions/checkout@v2
with:
fetch-depth: 3
submodules: true
- name: 'OpenSUSE 15 x64'
uses: docker://opensuse/leap:15.3
with:
entrypoint: /bin/bash
args: /github/workspace/scripts/helper/tests/native-test.sh --image opensuse/leap:15.3 --version ${{ github.event.inputs.version }} --base-url ${{ github.event.inputs.base_url }}
- name: 'OpenSUSE 13 x64'
uses: docker://opensuse/amd64:13.2
with:
entrypoint: /bin/bash
args: /github/workspace/scripts/helper/tests/native-test.sh --image opensuse/amd64:13.2 --version ${{ github.event.inputs.version }} --base-url ${{ github.event.inputs.base_url }}
ubuntu-x64-latest:
name: 'x64 GNU RISC-V Embedded GCC ${{ github.event.inputs.version }} test on Ubuntu latest'
runs-on: ubuntu-latest
steps:
- name: 'Machine'
run: uname -a
- name: 'Checkout'
uses: actions/checkout@v2
with:
fetch-depth: 3
submodules: true
- name: 'Ubuntu latest x64'
uses: docker://ubuntu:latest
with:
entrypoint: /bin/bash
args: /github/workspace/scripts/helper/tests/native-test.sh --image ubuntu:latest --version ${{ github.event.inputs.version }} --base-url ${{ github.event.inputs.base_url }}
# ubuntu:rolling fails during update
debian-x64-latest:
name: 'x64 GNU RISC-V Embedded GCC ${{ github.event.inputs.version }} test on Debian latest'
runs-on: ubuntu-latest
steps:
- name: 'Machine'
run: uname -a
- name: 'Checkout'
uses: actions/checkout@v2
with:
fetch-depth: 3
submodules: true
- name: 'Debian testing x64'
uses: docker://debian:testing
with:
entrypoint: /bin/bash
args: /github/workspace/scripts/helper/tests/native-test.sh --image debian:testing --version ${{ github.event.inputs.version }} --base-url ${{ github.event.inputs.base_url }}
- name: 'Debian latest x64'
uses: docker://debian:latest
with:
entrypoint: /bin/bash
args: /github/workspace/scripts/helper/tests/native-test.sh --image debian:latest --version ${{ github.event.inputs.version }} --base-url ${{ github.event.inputs.base_url }}
# Fails during zypper in
# docker://opensuse/tumbleweed
# fedora:rawhide - Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/...
# docker://fedora:latest
# - https://hub.docker.com/_/archlinux
arch-x64-latest:
name: 'x64 GNU RISC-V Embedded GCC ${{ github.event.inputs.version }} test on Arch latest'
runs-on: ubuntu-latest
steps:
- name: 'Machine'
run: uname -a
- name: 'Checkout'
uses: actions/checkout@v2
with:
fetch-depth: 3
submodules: true
- name: 'Arch latest x64'
uses: docker://archlinux:latest
with:
entrypoint: /bin/bash
args: /github/workspace/scripts/helper/tests/native-test.sh --image archlinux:latest --version ${{ github.event.inputs.version }} --base-url ${{ github.event.inputs.base_url }}
# - https://hub.docker.com/u/manjarolinux
# docker://manjarolinux/base - too slow
# - https://hub.docker.com/r/gentoo/portage
# docker://gentoo/portage - exec: "/bin/bash": stat /bin/bash: no such file or directory: unknown.
# https://hub.docker.com/r/i386/ubuntu/
ubuntu-ia32:
name: 'ia32 GNU RISC-V Embedded GCC ${{ github.event.inputs.version }} test on Ubuntu 18, 16, 14 stable'
runs-on: ubuntu-latest
steps:
- name: 'Machine'
run: uname -a
- name: 'Checkout'
uses: actions/checkout@v2
with:
fetch-depth: 3
submodules: true
- name: 'Ubuntu 20.04 ia32'
uses: docker://i386/ubuntu:20.04
with:
entrypoint: /usr/bin/linux32
args: /bin/bash /github/workspace/scripts/helper/tests/native-test.sh --image i386/ubuntu:20.04 --version ${{ github.event.inputs.version }} --base-url ${{ github.event.inputs.base_url }}
- name: 'Ubuntu 18.04 ia32'
uses: docker://i386/ubuntu:18.04
with:
entrypoint: /usr/bin/linux32
args: /bin/bash /github/workspace/scripts/helper/tests/native-test.sh --image i386/ubuntu:18.04 --version ${{ github.event.inputs.version }} --base-url ${{ github.event.inputs.base_url }}
- name: 'Ubuntu 16.04 ia32'
uses: docker://i386/ubuntu:16.04
with:
entrypoint: /usr/bin/linux32
args: /bin/bash /github/workspace/scripts/helper/tests/native-test.sh --image i386/ubuntu:16.04 --version ${{ github.event.inputs.version }} --base-url ${{ github.event.inputs.base_url }}
- name: 'Ubuntu 14.04 ia32'
uses: docker://i386/ubuntu:14.04
with:
entrypoint: /usr/bin/linux32
args: /bin/bash /github/workspace/scripts/helper/tests/native-test.sh --image i386/ubuntu:14.04 --version ${{ github.event.inputs.version }} --base-url ${{ github.event.inputs.base_url }}
# https://hub.docker.com/r/i386/debian
debian-ia32:
name: 'ia32 GNU RISC-V Embedded GCC ${{ github.event.inputs.version }} test on Debian 10, 9, 8 stable'
runs-on: ubuntu-latest
steps:
- name: 'Machine'
run: uname -a
- name: 'Checkout'
uses: actions/checkout@v2
with:
fetch-depth: 3
submodules: true
- name: 'Debian 10 ia32'
uses: docker://i386/debian:buster
with:
entrypoint: /usr/bin/linux32
args: /bin/bash /github/workspace/scripts/helper/tests/native-test.sh --image i386/debian:buster --version ${{ github.event.inputs.version }} --base-url ${{ github.event.inputs.base_url }}
- name: 'Debian 9 ia32'
uses: docker://i386/debian:stretch
with:
entrypoint: /usr/bin/linux32
args: /bin/bash /github/workspace/scripts/helper/tests/native-test.sh --image i386/debian:stretch --version ${{ github.event.inputs.version }} --base-url ${{ github.event.inputs.base_url }}
- name: 'Debian 8 ia32'
uses: docker://i386/debian:jessie
with:
entrypoint: /usr/bin/linux32
args: /bin/bash /github/workspace/scripts/helper/tests/native-test.sh --image i386/debian:jessie --version ${{ github.event.inputs.version }} --base-url ${{ github.event.inputs.base_url }}
# docker://i386/ubuntu:latest is 18.04, no need to test
debian-ia32-latest:
name: 'ia32 GNU RISC-V Embedded GCC ${{ github.event.inputs.version }} test on Debian latest'
runs-on: ubuntu-latest
steps:
- name: 'Machine'
run: uname -a
- name: 'Checkout'
uses: actions/checkout@v2
with:
fetch-depth: 3
submodules: true
- name: 'Debian testing ia32'
uses: docker://i386/debian:testing
with:
entrypoint: /usr/bin/linux32
args: /bin/bash /github/workspace/scripts/helper/tests/native-test.sh --image i386/debian:testing --version ${{ github.event.inputs.version }} --base-url ${{ github.event.inputs.base_url }}
# centos:latest outdated
# docker://i386/centos:latest outdated
# -----------------------------------------------------------------------------