Skip to content

Commit 8e46adb

Browse files
oech3Alonely0
authored andcommitted
Fix check on Windows & add CI
1 parent 5724be7 commit 8e46adb

4 files changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/low-priority-targets.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@ jobs:
2727
- name: check
2828
run: cargo check --target wasm32-wasip1
2929

30+
windows:
31+
name: check windows
32+
runs-on: windows-latest
33+
steps:
34+
- uses: actions/checkout@v6
35+
- name: check
36+
run: cargo check
37+
38+
# some unix specific crates might reject windows while it supports this...
3039
cygwin:
3140
name: check cygwin
3241
runs-on: windows-latest

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ memchr.workspace = true
4141
thiserror.workspace = true
4242
tracing.workspace = true
4343
bumpalo.workspace = true
44-
rustix = { version = "1.1.4", default-features = false, features = ["process"]}
4544
tracing-subscriber = { version = "0.3.23", features = ["env-filter"] }
4645
tracing-error = "0.2.1"
4746
clap = { version = "4.6.1", features = ["derive"] }

src/utils.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@ use std::panic::{UnwindSafe, catch_unwind, set_hook, take_hook};
99
use std::process::exit;
1010

1111
use color_eyre::config::HookBuilder;
12-
use rustix::process::{EXIT_FAILURE, EXIT_SUCCESS};
1312
use tracing_error::ErrorLayer;
1413
use tracing_subscriber::prelude::*;
1514

1615
type ExitCode = i32;
1716

1817
const AWK_PANIC_CODE: ExitCode = 2;
18+
const EXIT_FAILURE: ExitCode = 1;
19+
const EXIT_SUCCESS: ExitCode = 0;
1920

2021
fn install_abort_hook() {
2122
let run_hook = take_hook();

0 commit comments

Comments
 (0)