From ac8643db2cbbe6479e1fba640a34ecaff927a43d Mon Sep 17 00:00:00 2001 From: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com> Date: Mon, 9 Mar 2026 11:29:59 -0700 Subject: [PATCH 1/2] Add windows to CI Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com> --- .github/workflows/rust.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 0e43fa4..715733b 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -22,10 +22,15 @@ jobs: features: "" - runner: ubuntu-24.04-arm features: "--no-default-features" + - runner: windows-latest + features: "" + - runner: windows-latest + features: "--no-default-features" runs-on: ${{ matrix.runner }} steps: - uses: actions/checkout@v3 - name: Install deps + if: runner.os == 'Linux' run: ./ci/install_deps.sh - name: Format run: cargo fmt --all -- --check @@ -38,6 +43,7 @@ jobs: - name: Run tests run: cargo test --verbose ${{ matrix.features }} - name: Run basic dump creation test + if: runner.os == 'Linux' run: ./ci/test.sh miri: From 9dd1cd374a1df5b6267467853849dad52247bb88 Mon Sep 17 00:00:00 2001 From: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com> Date: Mon, 9 Mar 2026 11:30:07 -0700 Subject: [PATCH 2/2] Fix doctest on windows Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com> --- elfcore/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elfcore/src/lib.rs b/elfcore/src/lib.rs index 32082cd..3bda613 100644 --- a/elfcore/src/lib.rs +++ b/elfcore/src/lib.rs @@ -103,10 +103,10 @@ pub trait ReadProcessMemory { /// // Example of ThreadView and VaRegion structures that can be used /// // in the custom source /// let custom_source = CustomSource { -/// pid: nix::unistd::getpid().as_raw(), +/// pid: 1234, /// threads: vec![ThreadView { /// flags: 0, // Kernel flags for the process -/// tid: nix::unistd::getpid().as_raw(), +/// tid: 1234, /// uid: 0, // User ID /// gid: 0, // Group ID /// comm: "example".to_string(), // Command name