Skip to content

Commit

Permalink
feat: cmake verbose env
Browse files Browse the repository at this point in the history
  • Loading branch information
thewh1teagle committed Aug 4, 2024
1 parent e6d691e commit 6fe1c4b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
build_debug:
required: false
default: "0"
cmake_verbose:
required: false
default: ""
cargo_args:
required: false
default: ""
Expand Down Expand Up @@ -69,3 +72,4 @@ jobs:
cargo build ${{ matrix.options }} ${{ github.event.inputs.cargo_args }}
env:
BUILD_DEBUG: ${{ github.event.inputs.build_debug }}
CMAKE_VERBOSE: ${{ github.event.inputs.cmake_verbose }}
2 changes: 1 addition & 1 deletion sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ fn main() {
// General
config
.profile(profile)
.very_verbose(false)
.very_verbose(std::env::var("CMAKE_VERBOSE").is_ok()) // Not verbose by default
.always_configure(false);

let bindings_dir = config.build();
Expand Down

0 comments on commit 6fe1c4b

Please sign in to comment.