Migrate CI and builds to Just, add "full" builds (#660)

This commit is contained in:
Félix Saparelli 2023-01-08 18:27:36 +13:00 committed by GitHub
parent 305bf8123d
commit aea9df602c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 717 additions and 463 deletions

View file

@ -1,4 +1,5 @@
use std::{
env,
ffi::OsString,
fmt,
num::{NonZeroU64, ParseIntError},
@ -225,13 +226,8 @@ pub struct Args {
///
/// Set to `off` to disable logging completely, this will also
/// disable output from `cargo-install`.
#[clap(
help_heading = "Meta",
long,
default_value = "info",
value_name = "LEVEL"
)]
pub log_level: LevelFilter,
#[clap(help_heading = "Meta", long, value_name = "LEVEL")]
pub log_level: Option<LevelFilter>,
/// Equivalent to setting `log_level` to `off`.
///
@ -331,8 +327,16 @@ pub fn parse() -> Args {
// Load options
let mut opts = Args::parse_from(args);
if opts.quiet {
opts.log_level = LevelFilter::Off;
if let (true, Some(log)) = (
opts.log_level.is_none(),
env::var("BINSTALL_LOG_LEVEL")
.ok()
.and_then(|s| s.parse().ok()),
) {
opts.log_level = Some(log);
} else if opts.quiet {
opts.log_level = Some(LevelFilter::Off);
}
// Ensure no conflict