mirror of
https://github.com/Noratrieb/does-it-build.git
synced 2026-01-16 03:05:03 +01:00
Store more metadata
And other various improvements
This commit is contained in:
parent
f6fac25c6f
commit
7f1702bc28
11 changed files with 75 additions and 55 deletions
6
build.rs
6
build.rs
|
|
@ -12,6 +12,12 @@ fn main() {
|
|||
};
|
||||
|
||||
println!("cargo:rustc-env=GIT_COMMIT={version}");
|
||||
let version_short = if version.len() > 16 {
|
||||
&version[..16]
|
||||
} else {
|
||||
&version
|
||||
};
|
||||
println!("cargo:rustc-env=GIT_COMMIT_SHORT={version_short}");
|
||||
}
|
||||
|
||||
fn try_get_commit() -> color_eyre::Result<String> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue