Add windows arm64 target to CI core (#486)

This commit is contained in:
Sophon
2024-11-21 15:27:24 +08:00
committed by GitHub
parent bc7c4d8cd0
commit dd2236c697
2 changed files with 15 additions and 5 deletions

View File

@@ -67,11 +67,13 @@ impl WindowsBuild {
pub fn check_for_win() {
// add third_party dir to link search path
#[cfg(target_arch = "x86_64")]
println!("cargo:rustc-link-search=native=easytier/third_party/");
let target = std::env::var("TARGET").unwrap_or_default();
#[cfg(target_arch = "aarch64")]
println!("cargo:rustc-link-search=native=easytier/third_party/arm64/");
if target.contains("x86_64") {
println!("cargo:rustc-link-search=native=easytier/third_party/");
} else if target.contains("aarch64") {
println!("cargo:rustc-link-search=native=easytier/third_party/arm64/");
}
let protoc_path = if let Some(o) = Self::check_protoc_exist() {
println!("cargo:info=use os exist protoc: {:?}", o);