Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: "recursive"
fetch-tags: true

- name: Install build dependencies - Rustup
run: |
Expand Down Expand Up @@ -71,6 +72,7 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: "recursive"
fetch-tags: true

# Required for cargo-binstall
- name: Fix openssl on Windows
Expand Down
7 changes: 6 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,14 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
Path::new(&out_dir).join("src/lib/drivers/rest/autopilot/parameters/ardupilot_parameters");
println!("cargo:rerun-if-changed={}", params_src.display());

let gix = GixBuilder::default()
.all()
.describe(true, false, None)
.build()?;

vergen_gix::Emitter::default()
.add_instructions(&BuildBuilder::all_build()?)?
.add_instructions(&GixBuilder::all_git()?)?
.add_instructions(&gix)?
.add_instructions(
CargoBuilder::all_cargo()?.set_dep_kind_filter(Some(DependencyKind::Normal)),
)?
Expand Down
2 changes: 1 addition & 1 deletion src/lib/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ struct Manager {

#[derive(Debug, Parser)]
#[command(
version = env!("CARGO_PKG_VERSION"),
version = env!("VERGEN_GIT_DESCRIBE"),
author = env!("CARGO_PKG_AUTHORS"),
about = env!("CARGO_PKG_DESCRIPTION")
)]
Expand Down
Loading