mirror of https://github.com/hannobraun/Fornjot
Pass `RELEASE_DETECTED` as env for a compilation step
This commit is contained in:
parent
60b4992cc6
commit
639e1f1ba4
|
@ -67,6 +67,8 @@ jobs:
|
||||||
|
|
||||||
- name: Binaries | Compile
|
- name: Binaries | Compile
|
||||||
run: cargo build --release --target ${{ matrix.target }}
|
run: cargo build --release --target ${{ matrix.target }}
|
||||||
|
env:
|
||||||
|
RELEASE_DETECTED: ${{ needs.calculate-release-flags.outputs.release-detected }}
|
||||||
|
|
||||||
- name: Binaries | Prepare upload
|
- name: Binaries | Prepare upload
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -23,8 +23,8 @@ impl Version {
|
||||||
let commit = git_description();
|
let commit = git_description();
|
||||||
|
|
||||||
let official_release =
|
let official_release =
|
||||||
std::env::var("release-detected").as_deref() == Ok("true");
|
std::env::var("RELEASE_DETECTED").as_deref() == Ok("true");
|
||||||
println!("cargo:rerun-if-env-changed=release-detected");
|
println!("cargo:rerun-if-env-changed=RELEASE_DETECTED");
|
||||||
|
|
||||||
let full_string = match (commit, official_release) {
|
let full_string = match (commit, official_release) {
|
||||||
(Some(commit), true) => format!("{pkg_version} ({commit})"),
|
(Some(commit), true) => format!("{pkg_version} ({commit})"),
|
||||||
|
|
Loading…
Reference in New Issue