Skip to content

Commit 9b02dbc

Browse files
committed
Document setup script
1 parent b8b8202 commit 9b02dbc

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
uses: ./.github/workflows/prepare_wasm.yml
1212

1313
build:
14-
runs-on: macos-latest
14+
runs-on: ubuntu-latest
1515
permissions:
1616
contents: write
1717

packages/powersync_core/lib/src/setup_web.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,13 @@ Future<void> downloadFile(
214214
}
215215
}
216216

217+
/// Copies WebAssembly modules from `packages/sqlite3_wasm_build/dist` into
218+
/// `web/`.
219+
///
220+
/// When we're running this setup script as part of our CI, a previous action
221+
/// (`.github/actions/prepare/`) will have put compiled assets into that folder.
222+
/// Copying from there ensures we run web tests against our current SQLite web
223+
/// build and avoids downloading from GitHub releases for every package we test.
217224
Future<void> _copyPrecompiled(
218225
Directory project, String wasmFile, String outputDir) async {
219226
// Keep going up until we see the melos.yaml file indicating the workspace

0 commit comments

Comments
 (0)