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 29
282 lines (251 loc) · 11.2 KB
/
test-docker-linux-arm.yml
File metadata and controls
282 lines (251 loc) · 11.2 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
# -----------------------------------------------------------------------------
# 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 Arm 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-arm64:
name: 'arm64 GNU RISC-V Embedded GCC ${{ github.event.inputs.version }} test on Ubuntu 20, 18, 16, 14 stable'
runs-on: [self-hosted, linux, arm64]
steps:
- name: 'Machine'
run: uname -a
- name: 'Checkout'
uses: actions/checkout@v2
with:
fetch-depth: 3
submodules: true
- name: 'Ubuntu 20.04 arm64'
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 arm64'
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 arm64'
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 }}
# https://en.wikipedia.org/wiki/Debian_version_history
# https://hub.docker.com/_/debian
debian-arm64:
name: 'arm64 GNU RISC-V Embedded GCC ${{ github.event.inputs.version }} test on Debian 10, 9, 8 stable'
runs-on: [self-hosted, linux, arm64]
steps:
- name: 'Machine'
run: uname -a
- name: 'Checkout'
uses: actions/checkout@v2
with:
fetch-depth: 3
submodules: true
- name: 'Debian 10 arm64'
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 arm64'
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 }}
# docker://debian:jessie has no 64-bit variant
# 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-arm64:
# name: 'arm64 GNU RISC-V Embedded GCC ${{ github.event.inputs.version }} test on CentOS 8, 7 stable'
# runs-on: [self-hosted, linux, arm64]
# steps:
# - name: 'Checkout'
# uses: actions/checkout@v2
# with:
# fetch-depth: 3
# submodules: true
# - name: 'CentOS 8 arm64'
# 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 }}
# # docker://centos:7 - undefined reference to `__cxa_thread_atexit_impl@GLIBC_2.18'
# https://hub.docker.com/r/redhat/ubi8
# `-static` disabled, there is no static libc.a.
redhat-arm64:
name: 'arm64 GNU RISC-V Embedded GCC ${{ github.event.inputs.version }} test on RedHat 8 stable'
runs-on: [self-hosted, linux, arm64]
steps:
- name: 'Machine'
run: uname -a
- name: 'Checkout'
uses: actions/checkout@v2
with:
fetch-depth: 3
submodules: true
- name: 'RedHat 8 arm64'
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-arm64:
name: 'arm64 GNU RISC-V Embedded GCC ${{ github.event.inputs.version }} test on Fedora 35, 33, 30, 27 stable'
runs-on: [self-hosted, linux, arm64]
steps:
- name: 'Machine'
run: uname -a
- name: 'Checkout'
uses: actions/checkout@v2
with:
fetch-depth: 3
submodules: true
- name: 'Fedora 35 arm64'
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 arm64'
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 arm64'
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 27 arm64'
uses: docker://fedora:27
with:
entrypoint: /bin/bash
args: /github/workspace/scripts/helper/tests/native-test.sh --image fedora:27 --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-arm64:
name: 'arm64 GNU RISC-V Embedded GCC ${{ github.event.inputs.version }} test on OpenSUSE 15, 13 stable'
runs-on: [self-hosted, linux, arm64]
steps:
- name: 'Machine'
run: uname -a
- name: 'Checkout'
uses: actions/checkout@v2
with:
fetch-depth: 3
submodules: true
- name: 'OpenSUSE 15 arm64'
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 }}
# docker://opensuse/leap:13 not available
# ---------------------------------------------------------------------------
ubuntu-arm64-latest:
name: 'arm64 GNU RISC-V Embedded GCC ${{ github.event.inputs.version }} test on Ubuntu latest'
runs-on: [self-hosted, linux, arm64]
steps:
- name: 'Machine'
run: uname -a
- name: 'Checkout'
uses: actions/checkout@v2
with:
fetch-depth: 3
submodules: true
- name: 'Ubuntu latest arm64'
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-arm64-latest:
name: 'arm64 GNU RISC-V Embedded GCC ${{ github.event.inputs.version }} test on Debian latest'
runs-on: [self-hosted, linux, arm64]
steps:
- name: 'Machine'
run: uname -a
- name: 'Checkout'
uses: actions/checkout@v2
with:
fetch-depth: 3
submodules: true
- name: 'Debian testing arm64'
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 arm64'
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 }}
# - https://hub.docker.com/r/opensuse/tumbleweed
opensuse-arm64-latest:
name: 'arm64 GNU RISC-V Embedded GCC ${{ github.event.inputs.version }} test on OpenSUSE latest'
runs-on: [self-hosted, linux, arm64]
steps:
- name: 'Machine'
run: uname -a
- name: 'Checkout'
uses: actions/checkout@v2
with:
fetch-depth: 3
submodules: true
- name: 'OpenSUSE tumbleweed arm64'
uses: docker://opensuse/tumbleweed
with:
entrypoint: /bin/bash
args: /github/workspace/scripts/helper/tests/native-test.sh --image opensuse/tumbleweed --version ${{ github.event.inputs.version }} --base-url ${{ github.event.inputs.base_url }}
# fedora:rawhide - Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/...
# docker://fedora:latest
# docker://archlinux:latest - has no Arm variants
# - 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.
# -----------------------------------------------------------------------------