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: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,22 @@ jobs:
with:
ref: ${{ env.GIT_REF }}
- uses: dsherret/rust-toolchain-file@v1
- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v2
with:
shared-key: spacetimedb
key: ${{ github.ref }}
cache-on-failure: true
cache-all-crates: true
- uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: Install psql (Windows)
if: runner.os == 'Windows'
run: choco install psql -y --no-progress
shell: powershell
- name: Build crates
run: cargo build -p spacetimedb-cli -p spacetimedb-standalone -p spacetimedb-update
- name: Build and start database (Linux)
if: runner.os == 'Linux'
run: docker compose up -d
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/csharp-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,14 @@ jobs:
id: cache-rust-deps
with:
workspaces: demo/Blackholio/server-rust
key: ${{ steps.checkout-stdb.outputs.commit }}
shared-key: spacetimedb
key: ${{ github.ref }}
# Cache Rust deps even if unit tests have failed.
cache-on-failure: true
# Cache the CLI as well.
cache-all-crates: true

- name: Install SpacetimeDB CLI from the local checkout
# Rebuild only if we didn't get a precise cache hit.
if: steps.cache-rust-deps.outputs.cache-hit == 'false'
run: |
cargo install --force --path crates/cli --locked --message-format=short
cargo install --force --path crates/standalone --locked --message-format=short
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/typescript-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ jobs:
workspaces: |
.
modules/quickstart-chat
shared-key: quickstart-chat-test
shared-key: spacetimedb
key: ${{ github.ref }}
cache-on-failure: true
cache-all-crates: true

- name: Install SpacetimeDB CLI from the local checkout
run: |
Expand Down
Loading