File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -221,20 +221,30 @@ fn test_compose_url_to_exec() {
221
221
"https://dl.deno.land/release/v1.7.0/deno-x86_64-pc-windows-msvc.zip" ,
222
222
"https://dl.deno.js.cn/release/v1.7.0/deno-x86_64-pc-windows-msvc.zip"
223
223
) ;
224
- } else if #[ cfg( target_os = "macos" ) ] {
224
+ } else if #[ cfg( all ( target_os = "macos" , target_arch = "x86_64" ) ) ] {
225
225
asserts_eq_one_of!(
226
226
url. as_str( ) ,
227
227
"https://dl.deno.land/release/v1.7.0/deno-x86_64-apple-darwin.zip" ,
228
228
"https://dl.deno.js.cn/release/v1.7.0/deno-x86_64-apple-darwin.zip" ,
229
+ ) ;
230
+ } else if #[ cfg( all( target_os = "macos" , target_arch = "aarch64" ) ) ] {
231
+ asserts_eq_one_of!(
232
+ url. as_str( ) ,
229
233
"https://dl.deno.land/release/v1.7.0/deno-aarch64-apple-darwin.zip" ,
230
234
"https://dl.deno.js.cn/release/v1.7.0/deno-aarch64-apple-darwin.zip"
231
235
) ;
232
- } else if #[ cfg( target_os = "linux" ) ] {
236
+ } else if #[ cfg( all ( target_os = "linux" , target_arch = "x86_64" ) ) ] {
233
237
asserts_eq_one_of!(
234
238
url. as_str( ) ,
235
239
"https://dl.deno.land/release/v1.7.0/deno-x86_64-unknown-linux-gnu.zip" ,
236
240
"https://dl.deno.js.cn/release/v1.7.0/deno-x86_64-unknown-linux-gnu.zip"
237
241
) ;
242
+ } else if #[ cfg( all( target_os = "linux" , target_arch = "aarch64" ) ) ] {
243
+ asserts_eq_one_of!(
244
+ url. as_str( ) ,
245
+ "https://dl.deno.land/release/v1.7.0/deno-aarch64-unknown-linux-gnu.zip" ,
246
+ "https://dl.deno.js.cn/release/v1.7.0/deno-aarch64-unknown-linux-gnu.zip"
247
+ ) ;
238
248
}
239
249
}
240
250
}
You can’t perform that action at this time.
0 commit comments