Skip to content
Draft
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
9 changes: 3 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -686,12 +686,9 @@ jobs:
save-if: false
prefix-key: v1

- name: Install SpacetimeDB CLI from the local checkout
- name: Check v8 outputs
run: |
cargo install --force --path crates/cli --locked --message-format=short
cargo install --force --path crates/standalone --locked --message-format=short
# Add a handy alias using the old binary name, so that we don't have to rewrite all scripts (incl. in submodules).
ln -sf $CARGO_HOME/bin/spacetimedb-cli $CARGO_HOME/bin/spacetime
find "${CARGO_TARGET_DIR}"/ -type f | grep '[/_]v8' || true

- name: Check quickstart-chat bindings are up to date
working-directory: sdks/csharp
Expand All @@ -713,7 +710,7 @@ jobs:

- name: Start SpacetimeDB
run: |
spacetime start &
cargo run -pspacetimedb-cli -- start &
disown

- name: Run regression tests
Expand Down
7 changes: 4 additions & 3 deletions sdks/csharp/tools~/gen-client-api.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ SDK_PATH="$(dirname "$0")/.."
SDK_PATH="$(realpath "$SDK_PATH")"
STDB_PATH="$SDK_PATH/../.."

cargo build --manifest-path "$STDB_PATH/crates/standalone/Cargo.toml"
cd "$STDB_PATH"
cargo build -p spacetimedb-standalone

cargo run --manifest-path $STDB_PATH/crates/client-api-messages/Cargo.toml --example get_ws_schema |
cargo run --manifest-path $STDB_PATH/crates/cli/Cargo.toml -- generate -l csharp --namespace SpacetimeDB.ClientApi \
cargo run -p spacetimedb-client-api-messages --example get_ws_schema |
cargo run -p spacetimedb-cli -- generate -l csharp --namespace SpacetimeDB.ClientApi \
--module-def \
-o $SDK_PATH/src/SpacetimeDB/ClientApi/.output

Expand Down
5 changes: 3 additions & 2 deletions sdks/csharp/tools~/gen-quickstart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ SDK_PATH="$(dirname "$0")/.."
SDK_PATH="$(realpath "$SDK_PATH")"
STDB_PATH="$SDK_PATH/../.."

cargo build --manifest-path "$STDB_PATH/crates/standalone/Cargo.toml"
cargo run --manifest-path "$STDB_PATH/crates/cli/Cargo.toml" -- generate -y -l csharp -o "$SDK_PATH/examples~/quickstart-chat/client/module_bindings" --project-path "$SDK_PATH/examples~/quickstart-chat/server"
cd "$STDB_PATH"
cargo build -p spacetimedb-standalone
cargo run -p spacetimedb-cli -- generate -y -l csharp -o "$SDK_PATH/examples~/quickstart-chat/client/module_bindings" --project-path "$SDK_PATH/examples~/quickstart-chat/server"
9 changes: 5 additions & 4 deletions sdks/csharp/tools~/gen-regression-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ SDK_PATH="$(dirname "$0")/.."
SDK_PATH="$(realpath "$SDK_PATH")"
STDB_PATH="$SDK_PATH/../.."

cargo build --manifest-path "$STDB_PATH/crates/standalone/Cargo.toml"
cargo run --manifest-path "$STDB_PATH/crates/cli/Cargo.toml" -- generate -y -l csharp -o "$SDK_PATH/examples~/regression-tests/client/module_bindings" --project-path "$SDK_PATH/examples~/regression-tests/server"
cargo run --manifest-path "$STDB_PATH/crates/cli/Cargo.toml" -- generate -y -l csharp -o "$SDK_PATH/examples~/regression-tests/republishing/client/module_bindings" --project-path "$SDK_PATH/examples~/regression-tests/republishing/server-republish"
cargo run --manifest-path "$STDB_PATH/crates/cli/Cargo.toml" -- generate -y -l csharp -o "$SDK_PATH/examples~/regression-tests/procedure-client/module_bindings" --project-path "$STDB_PATH/modules/sdk-test-procedure"
cd "$STDB_PATH"
cargo build -p spacetimedb-standalone
cargo run -p spacetimedb-cli -- generate -y -l csharp -o "$SDK_PATH/examples~/regression-tests/client/module_bindings" --project-path "$SDK_PATH/examples~/regression-tests/server"
cargo run -p spacetimedb-cli -- generate -y -l csharp -o "$SDK_PATH/examples~/regression-tests/republishing/client/module_bindings" --project-path "$SDK_PATH/examples~/regression-tests/republishing/server-republish"
cargo run -p spacetimedb-cli -- generate -y -l csharp -o "$SDK_PATH/examples~/regression-tests/procedure-client/module_bindings" --project-path "$STDB_PATH/modules/sdk-test-procedure"
Loading