Disable i686 Linux build

This commit is contained in:
Luke Street 2024-02-21 23:37:29 -07:00
parent 7ba95bb22e
commit 09f008a34b
2 changed files with 11 additions and 12 deletions

View File

@ -88,11 +88,11 @@ jobs:
name: linux-x86_64 name: linux-x86_64
build: zigbuild build: zigbuild
features: asm features: asm
- platform: ubuntu-latest # - platform: ubuntu-latest
target: i686-unknown-linux-musl # target: i686-unknown-linux-musl
name: linux-i686 # name: linux-i686
build: zigbuild # build: zigbuild
features: asm # features: asm
- platform: ubuntu-latest - platform: ubuntu-latest
target: aarch64-unknown-linux-musl target: aarch64-unknown-linux-musl
name: linux-aarch64 name: linux-aarch64

View File

@ -8,7 +8,7 @@ use std::{
env, env,
error::Error, error::Error,
ffi::OsStr, ffi::OsStr,
fs, fmt, fs,
fs::File, fs::File,
io, io,
io::{BufWriter, Read, Write}, io::{BufWriter, Read, Write},
@ -141,16 +141,15 @@ impl FromStr for LogLevel {
} }
} }
impl ToString for LogLevel { impl fmt::Display for LogLevel {
fn to_string(&self) -> String { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self { write!(f, "{}", match self {
LogLevel::Error => "error", LogLevel::Error => "error",
LogLevel::Warn => "warn", LogLevel::Warn => "warn",
LogLevel::Info => "info", LogLevel::Info => "info",
LogLevel::Debug => "debug", LogLevel::Debug => "debug",
LogLevel::Trace => "trace", LogLevel::Trace => "trace",
} })
.to_string()
} }
} }
@ -372,7 +371,7 @@ fn convert_and_verify(in_file: &Path, out_file: Option<&Path>, md5: bool) -> Res
let pb = ProgressBar::new(disc_size); let pb = ProgressBar::new(disc_size);
pb.set_style(ProgressStyle::with_template("{spinner:.green} [{elapsed_precise}] [{wide_bar:.cyan/blue}] {bytes}/{total_bytes} ({bytes_per_sec}, {eta})") pb.set_style(ProgressStyle::with_template("{spinner:.green} [{elapsed_precise}] [{wide_bar:.cyan/blue}] {bytes}/{total_bytes} ({bytes_per_sec}, {eta})")
.unwrap() .unwrap()
.with_key("eta", |state: &ProgressState, w: &mut dyn std::fmt::Write| { .with_key("eta", |state: &ProgressState, w: &mut dyn fmt::Write| {
write!(w, "{:.1}s", state.eta().as_secs_f64()).unwrap() write!(w, "{:.1}s", state.eta().as_secs_f64()).unwrap()
}) })
.progress_chars("#>-")); .progress_chars("#>-"));