Fix check on Windows & add CI

This commit is contained in:
oech3
2026-05-14 08:45:06 +02:00
committed by Guillem L. Jara
parent 5724be7769
commit 8e46adbb53
4 changed files with 11 additions and 3 deletions
@@ -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
View File
@@ -1254,7 +1254,6 @@ dependencies = [
"interpreter",
"memchr",
"parser",
"rustix",
"thiserror",
"tracing",
"tracing-error",
-1
View File
@@ -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
View File
@@ -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();