Skip to content

Git designed for AI agents.

ci: build, start and test the graft client on Windows

Loris Salsi23538383142f
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 1bdd2ae..045d43d 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -172,3 +172,32 @@ jobs:
- name: Test (graft-agents module, CGO_ENABLED=0)
run: CGO_ENABLED=0 go -C tools/graft-agents test ./...
+
+ client-windows:
+ # The server does not run on Windows, but its clients do: the graft CLI and the SDK must build
+ # there and start (a package of theirs that does not work on Windows fails at initialization),
+ # and the workspace, which has Windows code of its own, must pass its tests.
+ runs-on: windows-latest
+ timeout-minutes: 30
+ defaults:
+ run:
+ # bash fails a step on its first failing command; PowerShell, the default here, only on
+ # its last.
+ shell: bash
+ steps:
+ - uses: actions/checkout@v4
+
+ - uses: actions/setup-go@v5
+ with:
+ go-version-file: go.mod
+
+ - name: Build (graft CLI, SDK)
+ run: |
+ go build -o graft.exe ./cmd/graft
+ go build ./sdk/...
+
+ - name: Start (graft CLI)
+ run: ./graft.exe help
+
+ - name: Test (workspace)
+ run: go test -count=1 ./internal/graft/workspace/...
diff --git a/doc/graft/LIMITATIONS.md b/doc/graft/LIMITATIONS.md
index 32c420f..f62bd8c 100644
--- a/doc/graft/LIMITATIONS.md
+++ b/doc/graft/LIMITATIONS.md
@@ -288,6 +288,9 @@ Git hooks use private.
- The Go SDK (`sdk/`) is the only supported client library. Other languages can
use the generated gRPC stubs, but no bindings are provided.
+- The server runs on Linux and macOS only. The `graft` CLI and the SDK also run
+ on Windows (`go build ./cmd/graft`); CI builds them there, starts the CLI and
+ runs the workspace tests.
- `graft` is a sparse, server-centric workspace for agents, not a replacement
for `git`. Commands that need the full object graph locally, such as `git log`
inside the workspace, need a normal Git clone.