Skip to content

Commit 4a2a330

Browse files
committed
ci: 'parity' job runs AgentiLoopCLI's scripts/parity.py against this build and the Rust twin
1 parent 8d64b1e commit 4a2a330

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,26 @@ jobs:
3939
for t in darwin/arm64 darwin/amd64 linux/amd64 linux/arm64 windows/amd64; do
4040
CGO_ENABLED=0 GOOS=${t%/*} GOARCH=${t#*/} go build -o /dev/null ./cmd/agentiloop
4141
done
42+
43+
# Builds this repo and its Rust twin (AgentiLoopCLI, main) and runs the twin's
44+
# scripts/parity.py: flags, /help, provider requests, --json/--stream-json output and
45+
# session files must match, and each binary must resume the other's sessions.
46+
parity:
47+
name: parity (Go ↔ Rust)
48+
runs-on: ubuntu-latest
49+
steps:
50+
- uses: actions/checkout@v4
51+
- uses: actions/checkout@v4
52+
with:
53+
repository: AgentiLoop/AgentiLoopCLI
54+
path: AgentiLoopCLI
55+
- uses: actions/setup-go@v5
56+
with:
57+
go-version-file: go.mod
58+
- uses: dtolnay/rust-toolchain@stable
59+
- uses: Swatinem/rust-cache@v2
60+
with:
61+
workspaces: AgentiLoopCLI
62+
- run: go build -o agentiloop ./cmd/agentiloop
63+
- run: cd AgentiLoopCLI && cargo build -p agentiloop
64+
- run: python3 AgentiLoopCLI/scripts/parity.py --rust AgentiLoopCLI/target/debug/agentiloop --go agentiloop --rust-src AgentiLoopCLI --go-src .

0 commit comments

Comments
 (0)