forked from pkgforge/soar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ Synced Soar 📦 <-- ci(workflow): update release workflow ⌚
- Loading branch information
1 parent
910c8ee
commit a0341d6
Showing
3 changed files
with
21 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
80cfceb122d519ab57b460386d51182e9884391c | ||
e0b9a5886bcdafb27a2af0cae42f72ec6d5beda1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
use std::process::Command; | ||
|
||
fn main() { | ||
if std::env::var("SOAR_NIGHTLY").is_ok() { | ||
let commit_sha = Command::new("git") | ||
.arg("rev-parse") | ||
.arg("--short") | ||
.arg("HEAD") | ||
.output() | ||
.expect("Failed to get git commit SHA") | ||
.stdout; | ||
|
||
let commit_sha = String::from_utf8(commit_sha).expect("Invalid UTF-8 output").trim().to_string(); | ||
|
||
println!("cargo:rerun-if-changed=build.rs"); | ||
println!("cargo:rustc-env=CARGO_PKG_VERSION=nightly-{}", commit_sha); | ||
} | ||
} |