-
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.
- Loading branch information
1 parent
826a3a9
commit fea75df
Showing
5 changed files
with
36 additions
and
14 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[target.aarch64-unknown-linux-gnu] | ||
pre-build = ["dpkg --add-architecture arm64 && apt-get update && apt-get install --assume-yes libssl-dev:arm64 && rm -rf /var/lib/apt/lists/*"] | ||
|
||
[target.x86_64-unknown-linux-gnu] | ||
pre-build = ["dpkg --add-architecture amd64 && apt-get update && apt-get install --assume-yes libssl-dev:amd64 && rm -rf /var/lib/apt/lists/*"] |
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,29 @@ | ||
use std::env; | ||
|
||
use build_data::get_git_dirty; | ||
|
||
/// Outputs a readable version number such as | ||
/// 0.4.0 (if git commit is clean) | ||
/// 0.4.0-SNAPSHOT (if git commit is dirty, should not happen in CI/CD builds) | ||
fn version() -> String { | ||
let version = String::from(env!("CARGO_PKG_VERSION")); | ||
match get_git_dirty().unwrap() { | ||
false => { | ||
version | ||
}, | ||
true => { | ||
format!("{}-SNAPSHOT", version) | ||
} | ||
} | ||
} | ||
|
||
fn main() { | ||
build_data::set_GIT_COMMIT_SHORT(); | ||
build_data::set_GIT_DIRTY(); | ||
build_data::set_BUILD_DATE(); | ||
build_data::set_BUILD_TIME(); | ||
// We must always run this build script as otherwise, we would cache old versions of CQL maps | ||
//build_data::no_debug_rebuilds(); | ||
println!("cargo:rustc-env=SAMPLY_USER_AGENT=Samply.Prism.{}/{}", env!("CARGO_PKG_NAME"), version()); | ||
|
||
} |
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
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