Rename rust env to decide build dir
This commit is contained in:
parent
a43f655727
commit
7f43e1de3e
|
@ -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
|
|
@ -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...");
|
||||
|
|
Loading…
Reference in New Issue