Fixup Rust CI

This commit is contained in:
lazymio
2021-11-09 00:58:13 +01:00
parent 87ece24160
commit ec02eccb85
2 changed files with 8 additions and 3 deletions

View File

@ -52,7 +52,12 @@ fn download_unicorn() -> Option<String> {
fn main() {
let profile = env::var("PROFILE").unwrap();
let unicorn_dir = download_unicorn().unwrap();
let unicorn_dir;
if let Result::Ok(_) = env::var("CI") {
unicorn_dir = format!("../..");
} else {
unicorn_dir = download_unicorn().unwrap();
}
println!("cargo:rerun-if-changed={}", &unicorn_dir);