mirror of
https://github.com/uutils/awk.git
synced 2026-06-10 16:15:04 -07:00
Fix check on Windows & add CI
This commit is contained in:
@@ -27,6 +27,15 @@ jobs:
|
||||
- name: check
|
||||
run: cargo check --target wasm32-wasip1
|
||||
|
||||
windows:
|
||||
name: check windows
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- name: check
|
||||
run: cargo check
|
||||
|
||||
# some unix specific crates might reject windows while it supports this...
|
||||
cygwin:
|
||||
name: check cygwin
|
||||
runs-on: windows-latest
|
||||
|
||||
Generated
-1
@@ -1254,7 +1254,6 @@ dependencies = [
|
||||
"interpreter",
|
||||
"memchr",
|
||||
"parser",
|
||||
"rustix",
|
||||
"thiserror",
|
||||
"tracing",
|
||||
"tracing-error",
|
||||
|
||||
@@ -41,7 +41,6 @@ memchr.workspace = true
|
||||
thiserror.workspace = true
|
||||
tracing.workspace = true
|
||||
bumpalo.workspace = true
|
||||
rustix = { version = "1.1.4", default-features = false, features = ["process"]}
|
||||
tracing-subscriber = { version = "0.3.23", features = ["env-filter"] }
|
||||
tracing-error = "0.2.1"
|
||||
clap = { version = "4.6.1", features = ["derive"] }
|
||||
|
||||
+2
-1
@@ -9,13 +9,14 @@ use std::panic::{UnwindSafe, catch_unwind, set_hook, take_hook};
|
||||
use std::process::exit;
|
||||
|
||||
use color_eyre::config::HookBuilder;
|
||||
use rustix::process::{EXIT_FAILURE, EXIT_SUCCESS};
|
||||
use tracing_error::ErrorLayer;
|
||||
use tracing_subscriber::prelude::*;
|
||||
|
||||
type ExitCode = i32;
|
||||
|
||||
const AWK_PANIC_CODE: ExitCode = 2;
|
||||
const EXIT_FAILURE: ExitCode = 1;
|
||||
const EXIT_SUCCESS: ExitCode = 0;
|
||||
|
||||
fn install_abort_hook() {
|
||||
let run_hook = take_hook();
|
||||
|
||||
Reference in New Issue
Block a user