@@ -20,11 +20,12 @@ jobs:
20
20
os : [ubuntu-latest, windows-latest, macOS-latest]
21
21
timeout-minutes : 10
22
22
steps :
23
- - uses : actions/checkout@v1
23
+ - uses : actions/checkout@v2
24
24
- name : Install Rust ${{ matrix.rust_toolchain }}
25
25
uses : actions-rs/toolchain@v1
26
26
with :
27
27
toolchain : ${{ matrix.rust_toolchain }}
28
+ profile : minimal
28
29
default : true
29
30
- name : Update
30
31
uses : actions-rs/cargo@v1
@@ -68,11 +69,12 @@ jobs:
68
69
# Only 64 bit GCC is preinstalled
69
70
# - i686-pc-windows-gnu
70
71
steps :
71
- - uses : actions/checkout@v1
72
+ - uses : actions/checkout@v2
72
73
- name : Install Rust nightly
73
74
uses : actions-rs/toolchain@v1
74
75
with :
75
76
toolchain : ${{ matrix.rust_toolchain }}
77
+ profile : minimal
76
78
target : ${{ matrix.rust_target }}
77
79
default : true
78
80
# https://github.com/rust-lang/rust/issues/49078
@@ -115,11 +117,12 @@ jobs:
115
117
- x86_64-unknown-linux-musl
116
118
timeout-minutes : 10
117
119
steps :
118
- - uses : actions/checkout@v1
120
+ - uses : actions/checkout@v2
119
121
- name : Install Rust nightly
120
122
uses : actions-rs/toolchain@v1
121
123
with :
122
124
toolchain : nightly
125
+ profile : minimal
123
126
target : ${{ matrix.rust_target }}
124
127
default : true
125
128
- name : Update
@@ -176,22 +179,16 @@ jobs:
176
179
#
177
180
# Currently tested manually on real hardware.
178
181
- sparc64-unknown-linux-gnu
179
- #
180
- # Not even a distribution exists that supports 32-bit SPARC...
181
- # - sparc-unknown-linux-gnu
182
- #
183
- # No Rustc for the target exists
184
- # - sparcv9-sun-solaris
185
- #
186
182
# BSDs: could be tested with full system emulation
187
183
- x86_64-unknown-netbsd
188
184
timeout-minutes : 10
189
185
steps :
190
- - uses : actions/checkout@v1
186
+ - uses : actions/checkout@v2
191
187
- name : Install Rust nightly
192
188
uses : actions-rs/toolchain@v1
193
189
with :
194
190
toolchain : nightly
191
+ profile : minimal
195
192
target : ${{ matrix.rust_target }}
196
193
default : true
197
194
- name : Update
@@ -217,11 +214,12 @@ jobs:
217
214
- x86_64-unknown-freebsd
218
215
timeout-minutes : 10
219
216
steps :
220
- - uses : actions/checkout@v1
217
+ - uses : actions/checkout@v2
221
218
- name : Install Rust nightly
222
219
uses : actions-rs/toolchain@v1
223
220
with :
224
221
toolchain : nightly
222
+ profile : minimal
225
223
target : ${{ matrix.rust_target }}
226
224
default : true
227
225
- name : Update
@@ -246,11 +244,12 @@ jobs:
246
244
- x86_64-apple-ios
247
245
timeout-minutes : 10
248
246
steps :
249
- - uses : actions/checkout@v1
247
+ - uses : actions/checkout@v2
250
248
- name : Install Rust ${{ matrix.rust_toolchain }}
251
249
uses : actions-rs/toolchain@v1
252
250
with :
253
251
toolchain : ${{ matrix.rust_toolchain }}
252
+ profile : minimal
254
253
target : ${{ matrix.rust_target }}
255
254
default : true
256
255
- name : Update
@@ -263,3 +262,32 @@ jobs:
263
262
with :
264
263
command : build
265
264
args : --target=${{ matrix.rust_target }} --manifest-path=psm/Cargo.toml
265
+
266
+ cross-build-without-std :
267
+ runs-on : ubuntu-latest
268
+ strategy :
269
+ fail-fast : false
270
+ matrix :
271
+ rust_target :
272
+ - wasm32-wasi
273
+ # cannot be built because cross-toolchains are not easily available and LLVM fails
274
+ # generating code when building libcore anyway...?
275
+ # - sparcv9-sun-solaris
276
+ # - sparc-unknown-linux-gnu
277
+ timeout-minutes : 10
278
+ steps :
279
+ - uses : actions/checkout@v2
280
+ - name : Install Rust nightly
281
+ uses : actions-rs/toolchain@v1
282
+ with :
283
+ toolchain : nightly
284
+ profile : minimal
285
+ default : true
286
+ - name : Fix-up toolchain
287
+ run : |
288
+ rustup component add rust-src --toolchain nightly --target ${{ matrix.rust_target }}
289
+ - name : Build ${{ matrix.rust_target }}
290
+ uses : actions-rs/cargo@v1
291
+ with :
292
+ command : build
293
+ args : --target ${{ matrix.rust_target }} --manifest-path=psm/Cargo.toml -Zbuild-std=core
0 commit comments