Merge 'Move sync code to own directory' from Pekka Enberg

Reviewed-by: Nikita Sivukhin (@sivukhin)

Closes #2643
This commit is contained in:
Pekka Enberg
2025-08-18 19:21:34 +03:00
committed by GitHub
40 changed files with 15 additions and 15 deletions

View File

@@ -17,7 +17,7 @@ env:
defaults:
run:
working-directory: packages/turso-sync-js
working-directory: sync/javascript
jobs:
build:
@@ -99,7 +99,7 @@ jobs:
if: ${{ matrix.settings.docker }}
with:
image: ${{ matrix.settings.docker }}
options: "--user 0:0 -v ${{ github.workspace }}/.cargo-cache/git/db:/usr/local/cargo/git/db -v ${{ github.workspace }}/.cargo/registry/cache:/usr/local/cargo/registry/cache -v ${{ github.workspace }}/.cargo/registry/index:/usr/local/cargo/registry/index -v ${{ github.workspace }}:/build -w /build/packages/turso-sync-js"
options: "--user 0:0 -v ${{ github.workspace }}/.cargo-cache/git/db:/usr/local/cargo/git/db -v ${{ github.workspace }}/.cargo/registry/cache:/usr/local/cargo/registry/cache -v ${{ github.workspace }}/.cargo/registry/index:/usr/local/cargo/registry/index -v ${{ github.workspace }}:/build -w /build/sync/javascript"
run: ${{ matrix.settings.build }}
- name: Build
run: ${{ matrix.settings.build }}
@@ -110,8 +110,8 @@ jobs:
with:
name: turso-sync-js-${{ matrix.settings.target }}
path: |
packages/turso-sync-js/${{ env.APP_NAME }}.*.node
packages/turso-sync-js/${{ env.APP_NAME }}.*.wasm
sync/javascript/${{ env.APP_NAME }}.*.node
sync/javascript/${{ env.APP_NAME }}.*.wasm
if-no-files-found: error
test-macOS-windows-binding:
name: Test turso-sync-js on ${{ matrix.settings.target }} - node@${{ matrix.node }}
@@ -139,7 +139,7 @@ jobs:
uses: actions/download-artifact@v4
with:
name: turso-sync-js-${{ matrix.settings.target }}
path: packages/turso-sync-js
path: sync/javascript
- name: List packages
run: ls -R .
shell: bash
@@ -167,7 +167,7 @@ jobs:
uses: actions/download-artifact@v4
with:
name: turso-sync-js-x86_64-unknown-linux-gnu
path: packages/turso-sync-js
path: sync/javascript
- name: List packages
run: ls -R .
shell: bash
@@ -190,12 +190,12 @@ jobs:
uses: actions/download-artifact@v4
with:
name: turso-sync-js-x86_64-apple-darwin
path: packages/turso-sync-js
path: sync/javascript
- name: Download macOS arm64 artifact
uses: actions/download-artifact@v4
with:
name: turso-sync-js-aarch64-apple-darwin
path: packages/turso-sync-js
path: sync/javascript
- name: List packages
run: ls -R .
shell: bash
@@ -206,8 +206,8 @@ jobs:
with:
name: turso-sync-js-universal-apple-darwin
path: |
packages/turso-sync-js/${{ env.APP_NAME }}.*.node
packages/turso-sync-js${{ env.APP_NAME }}.*.wasm
sync/javascript/${{ env.APP_NAME }}.*.node
sync/javascript${{ env.APP_NAME }}.*.wasm
if-no-files-found: error
publish:
name: Publish
@@ -233,7 +233,7 @@ jobs:
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: packages/turso-sync-js/artifacts
path: sync/javascript/artifacts
- name: Move artifacts
run: yarn artifacts
- name: List packages

View File

@@ -27,8 +27,8 @@ members = [
"tests",
"vendored/sqlite3-parser/sqlparser_bench",
"parser",
"packages/turso-sync-engine",
"packages/turso-sync-js",
"sync/engine",
"sync/javascript",
]
exclude = ["perf/latency/limbo"]
@@ -44,7 +44,7 @@ turso = { path = "bindings/rust", version = "0.1.4-pre.9" }
turso_node = { path = "bindings/javascript", version = "0.1.4-pre.9" }
limbo_completion = { path = "extensions/completion", version = "0.1.4-pre.9" }
turso_core = { path = "core", version = "0.1.4-pre.9" }
turso_sync_engine = { path = "packages/turso-sync-engine", version = "0.1.4-pre.9" }
turso_sync_engine = { path = "sync/engine", version = "0.1.4-pre.9" }
limbo_crypto = { path = "extensions/crypto", version = "0.1.4-pre.9" }
limbo_csv = { path = "extensions/csv", version = "0.1.4-pre.9" }
turso_ext = { path = "extensions/core", version = "0.1.4-pre.9" }

View File

@@ -21,7 +21,7 @@ NPM_PACKAGES = [
"bindings/javascript/npm/linux-x64-gnu",
"bindings/javascript/npm/win32-x64-msvc",
"bindings/javascript/npm/wasm32-wasip1-threads",
"packages/turso-sync-js",
"sync/javascript",
]