From de28719ac952c025d4785d38b4d15dbfdd332c95 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 8 Mar 2026 17:58:45 +0000 Subject: [PATCH 1/3] Initial plan From 0948c55825d2bdff5cd256a48f660d3fa3217cd5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 8 Mar 2026 18:02:44 +0000 Subject: [PATCH 2/3] Add GitHub Actions CI for Linux, macOS, and Windows builds; make nix dep platform-conditional Co-authored-by: mh0pe <8176115+mh0pe@users.noreply.github.com> --- .github/workflows/ci.yml | 42 ++++++++++++++++++++++++++++++++++++++++ Cargo.toml | 2 ++ 2 files changed, 44 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..c685f56 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,42 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build: + name: Build (${{ matrix.os }}) + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + rust: [stable] + include: + - os: ubuntu-latest + rust: beta + - os: macos-latest + rust: beta + - os: windows-latest + rust: beta + + steps: + - uses: actions/checkout@v4 + + - name: Install Rust toolchain + uses: dtolnay/rust-toolchain@master + with: + toolchain: ${{ matrix.rust }} + components: rustfmt + + - name: Check formatting + run: cargo fmt -- --check + + - name: Build + run: cargo build --verbose + + - name: Run tests + run: cargo test --verbose diff --git a/Cargo.toml b/Cargo.toml index 83e0bb2..871700f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,9 @@ jwalk = "0.5" structopt = "0.3" filesize = "0.2.0" unicode-width = "0.1.7" +[target.'cfg(not(target_os = "windows"))'.dependencies] nix = "0.17.0" + [target.'cfg(windows)'.dependencies] winapi = { version = "0.3", features = ["securitybaseapi","debugapi"] } From 84b12fa4d12544ca7a6369d9fd2ebef4645e69ec Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 8 Mar 2026 18:03:34 +0000 Subject: [PATCH 3/3] Add explicit permissions to CI workflow for security Co-authored-by: mh0pe <8176115+mh0pe@users.noreply.github.com> --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c685f56..712e0b4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,9 @@ on: pull_request: branches: [main] +permissions: + contents: read + jobs: build: name: Build (${{ matrix.os }})