Skip to content

Commit

Permalink
fix test on ubuntu arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
justjavac committed Feb 13, 2025
1 parent e556e75 commit 6c9f56e
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/commands/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,20 +221,30 @@ fn test_compose_url_to_exec() {
"https://dl.deno.land/release/v1.7.0/deno-x86_64-pc-windows-msvc.zip",
"https://dl.deno.js.cn/release/v1.7.0/deno-x86_64-pc-windows-msvc.zip"
);
} else if #[cfg(target_os = "macos")] {
} else if #[cfg(all(target_os = "macos", target_arch = "x86_64"))] {
asserts_eq_one_of!(
url.as_str(),
"https://dl.deno.land/release/v1.7.0/deno-x86_64-apple-darwin.zip",
"https://dl.deno.js.cn/release/v1.7.0/deno-x86_64-apple-darwin.zip",
);
} else if #[cfg(all(target_os = "macos", target_arch = "aarch64"))] {
asserts_eq_one_of!(
url.as_str(),
"https://dl.deno.land/release/v1.7.0/deno-aarch64-apple-darwin.zip",
"https://dl.deno.js.cn/release/v1.7.0/deno-aarch64-apple-darwin.zip"
);
} else if #[cfg(target_os = "linux")] {
} else if #[cfg(all(target_os = "linux", target_arch = "x86_64"))] {
asserts_eq_one_of!(
url.as_str(),
"https://dl.deno.land/release/v1.7.0/deno-x86_64-unknown-linux-gnu.zip",
"https://dl.deno.js.cn/release/v1.7.0/deno-x86_64-unknown-linux-gnu.zip"
);
} else if #[cfg(all(target_os = "linux", target_arch = "aarch64"))] {
asserts_eq_one_of!(
url.as_str(),
"https://dl.deno.land/release/v1.7.0/deno-aarch64-unknown-linux-gnu.zip",
"https://dl.deno.js.cn/release/v1.7.0/deno-aarch64-unknown-linux-gnu.zip"
);
}
}
}

0 comments on commit 6c9f56e

Please sign in to comment.