From 7f43e1de3e3361f05fe4bc06eeaf24a3cf750904 Mon Sep 17 00:00:00 2001 From: lazymio Date: Wed, 10 Nov 2021 07:51:07 +0100 Subject: [PATCH] Rename rust env to decide build dir --- .github/workflows/Crate-publishing.yml | 4 ++-- bindings/rust/build.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/Crate-publishing.yml b/.github/workflows/Crate-publishing.yml index 2934e102..ce618990 100644 --- a/.github/workflows/Crate-publishing.yml +++ b/.github/workflows/Crate-publishing.yml @@ -70,7 +70,7 @@ jobs: - name: '🚧 Cargo test' if: "!startsWith(github.ref, 'refs/tags')" env: - CI: ci + UNICORN_LOCAL: uc run: | cd bindings/rust && cargo test @@ -78,6 +78,6 @@ jobs: if: startsWith(github.ref, 'refs/tags') && contains(matrix.config.os, 'ubuntu') env: TOKEN: ${{ secrets.cratesio_token }} - CI: ci + UNICORN_LOCAL: uc run: | cd bindings/rust && cargo login $TOKEN && cargo test && cargo publish \ No newline at end of file diff --git a/bindings/rust/build.rs b/bindings/rust/build.rs index bb4e6d7d..e5b41cfc 100644 --- a/bindings/rust/build.rs +++ b/bindings/rust/build.rs @@ -69,7 +69,7 @@ fn main() { rust_build_path.join("Release").to_str().unwrap() ); } else { - let unicorn_dir = if let Result::Ok(_) = env::var("CI") { + let unicorn_dir = if let Result::Ok(_) = env::var("UNICORN_LOCAL") { Path::new("..").join("..") } else { println!("cargo:warning=Unicorn not found. Downloading...");