Skip to content
Merged
Changes from 10 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
13 changes: 13 additions & 0 deletions .github/workflows/csharp-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,19 @@ jobs:
# Share the target directory with our local project to avoid rebuilding same SpacetimeDB crates twice.
CARGO_TARGET_DIR: demo/Blackholio/server-rust/target

- name: Check quickstart-chat bindings are up to date
working-directory: sdks/csharp/examples~/quickstart-chat
run: |
spacetime generate --lang csharp --out-dir client/module_bindings --project-path server
# This was copied from tools/check-diff.sh.
# It's required because `spacetime generate` creates lines with the SpacetimeDB commit
# version, which would make this `git diff` check very brittle if included.
PATTERN='^// This was generated using spacetimedb cli version.*'
git diff --exit-code --ignore-matching-lines="$PATTERN" -- . || {
echo "Error: Bindings have changed. Please generate bindings again and commit them to this branch."
exit 1
}

- name: Generate client bindings
working-directory: demo/Blackholio/server-rust
run: bash ./generate.sh -y
Expand Down
Loading