-
-
Notifications
You must be signed in to change notification settings - Fork 277
247 lines (242 loc) · 10.3 KB
/
cross_platform.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
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
{
"name": "Cross platform tests",
"on": {
"push": {
"branches": [
"trunk",
"v*.x",
"ci/*"
]
},
"pull_request": {
"branches": [
"trunk",
"v*.x"
]
}
},
"jobs": {
"test_cross_std": {
"name": "Cross platform test (platforms with standard library)",
"runs-on": "ubuntu-latest",
"strategy": {
"fail-fast": false,
"matrix": {
"platform": [
# Tier 1
"aarch64-unknown-linux-gnu",
# 0050:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
# 0050:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
# 0050:err:systray:initialize_systray Could not create tray window
# 0024:err:module:import_dll Library bcryptprimitives.dll (which is needed by L"Z:\\target\\i686-pc-windows-gnu\\debug\\deps\\bincode-569310bd32491256.exe") not found
# 0024:err:module:LdrInitializeThunk Importing dlls for L"Z:\\target\\i686-pc-windows-gnu\\debug\\deps\\bincode-569310bd32491256.exe" failed, status c0000135
# "i686-pc-windows-gnu",
# `cross` does not provide a Docker image for target i686-pc-windows-msvc
# "i686-pc-windows-msvc",
"i686-unknown-linux-gnu",
# `cross` does not provide a Docker image for target x86_64-apple-darwin
# "x86_64-apple-darwin",
# 0050:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
# 0050:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
# 0050:err:systray:initialize_systray Could not create tray window
# 00f4:err:module:import_dll Library bcryptprimitives.dll (which is needed by L"Z:\\target\\x86_64-pc-windows-gnu\\debug\\deps\\bincode-b91af23bf3efc9f3.exe") not found
# 00f4:err:module:LdrInitializeThunk Importing dlls for L"Z:\\target\\x86_64-pc-windows-gnu\\debug\\deps\\bincode-b91af23bf3efc9f3.exe" failed, status c0000135
# "x86_64-pc-windows-gnu",
# `cross` does not provide a Docker image for target x86_64-pc-windows-msvc
# "x86_64-pc-windows-msvc",
"x86_64-unknown-linux-gnu",
# Tier 2
# `cross` does not provide a Docker image for target aarch64-apple-darwin
# "aarch64-apple-darwin",
# `cross` does not provide a Docker image for target aarch64-pc-windows-msvc
# "aarch64-pc-windows-msvc",
"aarch64-unknown-linux-musl",
"arm-unknown-linux-gnueabi",
"arm-unknown-linux-gnueabihf",
"armv7-unknown-linux-gnueabihf",
# `cross` does not provide a Docker image for target loongarch64-unknown-linux-gnu
# "loongarch64-unknown-linux-gnu",
# BLOCKEDTODO(https://github.com/cross-rs/cross/issues/975): currently broken
# "mips-unknown-linux-gnu",
# BLOCKEDTODO(https://github.com/cross-rs/cross/issues/975): currently broken
# "mips64-unknown-linux-gnuabi64",
# BLOCKEDTODO(https://github.com/cross-rs/cross/issues/975): currently broken
# "mips64el-unknown-linux-gnuabi64",
# BLOCKEDTODO(https://github.com/cross-rs/cross/issues/975): currently broken
# "mipsel-unknown-linux-gnu",
"powerpc-unknown-linux-gnu",
"powerpc64-unknown-linux-gnu",
"powerpc64le-unknown-linux-gnu",
"riscv64gc-unknown-linux-gnu",
"s390x-unknown-linux-gnu",
# BLOCKEDTODO(https://github.com/cross-rs/cross/issues/975): currently broken
# "x86_64-unknown-freebsd",
# BLOCKEDTODO(https://github.com/cross-rs/cross/issues/975): currently broken
# "x86_64-unknown-illumos",
"x86_64-unknown-linux-musl",
# BLOCKEDTODO(https://github.com/cross-rs/cross/issues/975): currently broken
# "x86_64-unknown-netbsd",
# Tier 3, only those that have std
# `cross` does not provide a Docker image for target aarch64-apple-ios
# "aarch64-apple-ios",
# `cross` does not provide a Docker image for target aarch64-apple-ios-sim
# "aarch64-apple-ios-sim",
# `cross` does not provide a Docker image for target aarch64-fuchsia
# "aarch64-fuchsia",
# `cross` does not provide a Docker image for target aarch64-unknown-fuchsia
# "aarch64-unknown-fuchsia",
# BLOCKEDTODO(https://github.com/cross-rs/cross/issues/1222): currently broken
# "aarch64-linux-android",
"arm-linux-androideabi",
"arm-unknown-linux-musleabi",
"arm-unknown-linux-musleabihf",
"armv5te-unknown-linux-gnueabi",
"armv5te-unknown-linux-musleabi",
"armv7-linux-androideabi",
"armv7-unknown-linux-gnueabi",
"armv7-unknown-linux-musleabi",
"armv7-unknown-linux-musleabihf",
# BLOCKEDTODO(https://github.com/cross-rs/cross/issues/634): broken
# "asmjs-unknown-emscripten",
"i586-unknown-linux-gnu",
"i586-unknown-linux-musl",
# BLOCKEDTODO(https://github.com/cross-rs/cross/issues/1222): currently broken
# "i686-linux-android",
# BLOCKEDTODO(https://github.com/cross-rs/cross/issues/975): currently broken
# "i686-unknown-freebsd",
"i686-unknown-linux-musl",
# "mips-unknown-linux-musl",
# "mips64-unknown-linux-muslabi64",
# "mips64el-unknown-linux-muslabi64",
# "mipsel-unknown-linux-musl",
"sparc64-unknown-linux-gnu",
# BLOCKEDTODO(https://github.com/cross-rs/cross/issues/975): currently broken
# "sparcv9-sun-solaris",
"thumbv7neon-linux-androideabi",
"thumbv7neon-unknown-linux-gnueabihf",
# BLOCKEDTODO(https://github.com/cross-rs/cross/issues/975): currently broken
# "wasm32-unknown-emscripten",
# `cross` does not provide a Docker image for target wasm32-unknown-unknown
# "wasm32-unknown-unknown",
# `cross` does not provide a Docker image for target wasm32-wasi
# "wasm32-wasi",
# `cross` does not provide a Docker image for target x86_64-apple-ios
# "x86_64-apple-ios",
# `cross` does not provide a Docker image for target x86_64-fortanix-unknown-sgx
# "x86_64-fortanix-unknown-sgx",
# `cross` does not provide a Docker image for target x86_64-fuchsia
# "x86_64-fuchsia",
# `cross` does not provide a Docker image for target x86_64-unknown-fuchsia
# "x86_64-unknown-fuchsia",
# BLOCKEDTODO(https://github.com/cross-rs/cross/issues/975): currently broken
# "x86_64-linux-android",
# `cross` does not provide a Docker image for target x86_64-pc-solaris
# "x86_64-pc-solaris",
# `cross` does not provide a Docker image for target x86_64-unknown-linux-gnux32
# "x86_64-unknown-linux-gnux32",
# `cross` does not provide a Docker image for target x86_64-unknown-redox
# "x86_64-unknown-redox",
]
}
},
"steps": [
{
"uses": "actions/checkout@v4",
"name": "Checkout"
},
{
"uses": "actions-rs/toolchain@v1",
"with": {
"profile": "minimal",
"toolchain": "stable",
"override": true
},
"name": "Install Rust stable"
},
{
"uses": "actions-rs/[email protected]",
"with": {
"crate": "cross"
},
"name": "Install cargo cross"
},
{
"run": "cross test --target ${{ matrix.platform }}",
"name": "Run tests",
"env": {
"RUSTFLAGS": "-D warnings",
"RUST_BACKTRACE": "1",
}
}
]
},
# None of these work, needs more investigation
# "test_cross_no_std": {
# "name": "Cross platform test (no_std, platforms without standard library)",
# "runs-on": "ubuntu-latest",
# "strategy": {
# "fail-fast": false,
# "matrix": {
# "platform": [
# # Tier 3
# "aarch64-unknown-none-softfloat",
# "aarch64-unknown-none",
# "aarch64-unknown-uefi",
# "armebv7r-none-eabi",
# "armebv7r-none-eabihf",
# "armv7a-none-eabi",
# "armv7r-none-eabi",
# "armv7r-none-eabihf",
# "i586-pc-windows-msvc",
# "i686-unknown-uefi",
# "nvptx64-nvidia-cuda",
# "riscv32i-unknown-none-elf",
# "riscv32imac-unknown-none-elf",
# "riscv32imc-unknown-none-elf",
# "riscv64gc-unknown-none-elf",
# "riscv64imac-unknown-none-elf",
# "thumbv6m-none-eabi",
# "thumbv7em-none-eabi",
# "thumbv7em-none-eabihf",
# "thumbv7m-none-eabi",
# "thumbv8m.base-none-eabi",
# "thumbv8m.main-none-eabi",
# "thumbv8m.main-none-eabihf",
# "x86_64-unknown-none",
# "x86_64-unknown-uefi",
# ]
# }
# },
# "steps": [
# {
# "uses": "actions/checkout@v4",
# "name": "Checkout"
# },
# {
# "uses": "actions-rs/toolchain@v1",
# "with": {
# "profile": "minimal",
# "toolchain": "stable",
# "override": true
# },
# "name": "Install Rust stable"
# },
# {
# "uses": "actions-rs/[email protected]",
# "with": {
# "crate": "cross"
# },
# "name": "Install cargo cross"
# },
# {
# "run": "cross test --target ${{ matrix.platform }} --no-default-features --features alloc,derive",
# "name": "Run tests",
# "env": {
# "RUSTFLAGS": "-D warnings",
# "RUST_BACKTRACE": "1",
# }
# }
# ]
# }
}
}