Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,25 @@ jobs:
with:
name: rime
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'

- run: nix build .#rime

- name: Integration with Claude Code
run: |
export HOME=$GITHUB_WORKSPACE/temp_home
mkdir -p $HOME
nix shell nixpkgs#bun --command bunx @anthropic-ai/claude-code mcp add rime -- ./result/bin/rime stdio

for i in {1..3}; do
echo "Checking MCP health (attempt $i)..."
OUTPUT=$(nix shell nixpkgs#bun --command bunx @anthropic-ai/claude-code mcp list 2>&1)
echo "$OUTPUT"
if echo "$OUTPUT" | grep -q "rime:.*Connected"; then
echo "Validation successful!"
exit 0
fi
sleep 5
done
echo "Validation failed: rime did not connect to Claude Code"
exit 1

Loading