Skip to content

Commit 86a2b16

Browse files
Merge pull request #19 from powersync-ja/powersync_builds
Static + Dynamic PowerSync Builds
2 parents e139801 + f68e066 commit 86a2b16

File tree

196 files changed

+16295
-18782
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

196 files changed

+16295
-18782
lines changed

.changeset/funny-ghosts-attack.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@journeyapps/wa-sqlite': minor
3+
---
4+
5+
Updated PowerSync core build steps by removing Git submodules. Added ability to load PowerSync extension as a dynamic side module.

.changeset/perfect-radios-hunt.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@journeyapps/wa-sqlite': major
3+
---
4+
5+
Updated from upstream to v1.0.4

.github/workflows/ci.yml

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,66 +5,71 @@ name: wa-sqlite CI
55

66
on:
77
push:
8-
branches: ["master"]
8+
branches: ['master']
99
pull_request:
10-
branches: ["master"]
10+
branches: ['master']
1111

1212
env:
1313
EM_VERSION: 3.1.64
14-
EM_CACHE_FOLDER: "emsdk-cache"
14+
EM_CACHE_FOLDER: 'emsdk-cache'
1515

1616
jobs:
1717
build:
1818
runs-on: ubuntu-latest
1919

2020
strategy:
2121
matrix:
22-
node-version: [16.x]
22+
node-version: [20.x]
2323

2424
steps:
2525
- uses: actions/checkout@v4
26-
with:
27-
submodules: "recursive"
2826
- name: Use Node.js ${{ matrix.node-version }}
29-
uses: actions/setup-node@v3
27+
uses: actions/setup-node@v4
3028
with:
3129
node-version: ${{ matrix.node-version }}
32-
cache: "npm"
30+
cache: 'npm'
31+
32+
- uses: browser-actions/setup-chrome@v1
33+
id: setup-chrome
34+
with:
35+
chrome-version: 129
36+
- run: |
37+
${{ steps.setup-chrome.outputs.chrome-path }} --version
3338
34-
# Install yarn dependencies.
39+
# Install yarn dependencies.
3540
- name: Get yarn cache directory path
3641
id: yarn-cache-dir-path
3742
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
38-
- uses: actions/cache@v3
43+
- uses: actions/cache@v4
3944
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
4045
with:
4146
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
4247
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
4348
restore-keys: |
4449
${{ runner.os }}-yarn-
4550
- run: yarn install
46-
- name: Rust Setup
47-
run: |
48-
rustup toolchain install nightly-2024-05-18-x86_64-unknown-linux-gnu
49-
rustup component add rust-src --toolchain nightly-2024-05-18-x86_64-unknown-linux-gnu
50-
5151
- name: Test with checked-in WASM files
52-
run: yarn test --reporters progress
52+
run: yarn test
5353

5454
# Install EMSDK
5555
- name: Setup Emscripten
5656
id: cache-system-libraries
57-
uses: actions/cache@v3
57+
uses: actions/cache@v4
5858
with:
5959
path: ${{env.EM_CACHE_FOLDER}}
6060
key: ${{env.EM_VERSION}}-${{ runner.os }}
61-
- uses: mymindstorm/setup-emsdk@v12
61+
- uses: mymindstorm/setup-emsdk@v14
6262
with:
6363
version: ${{env.EM_VERSION}}
6464
actions-cache-folder: ${{env.EM_CACHE_FOLDER}}
6565
- run: emcc -v
6666

67+
# For some reason the Makefile fails to execute this with a "Permission denied"
68+
# error on Github actions. Doing this here prevents the error.
69+
- name: Download PowerSync Core
70+
run: node scripts/download-core-build.js
71+
6772
- name: Test WASM build
6873
run: |
6974
make clean && make
70-
yarn test --reporters progress
75+
yarn test

.github/workflows/dev-packages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Setup NodeJS
1515
uses: actions/setup-node@v2
1616
with:
17-
node-version: 16
17+
node-version: 20
1818

1919
- name: Setup Yarn
2020
run: |

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Setup Node.js 16
1919
uses: actions/setup-node@v3
2020
with:
21-
node-version: 16
21+
node-version: 20
2222

2323
- name: Install Dependencies
2424
run: yarn

.gitignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@
99
!.yarn/versions
1010
.pnp.*
1111

12+
# PowerSync Rust Core
13+
libpowersync*.wasm
14+
powersync-libs
15+
1216
/cache
1317
/debug
1418
/deps
1519
/tmp
16-
17-
/dist-xl.zip
18-
/dist-xl

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
[submodule "powersync-sqlite-core"]
2-
path = powersync-sqlite-core
3-
url = [email protected]:powersync-ja/powersync-sqlite-core.git

.vscode/extensions.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"recommendations": [
3+
"arcanis.vscode-zipfs"
4+
]
5+
}

.vscode/settings.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"search.exclude": {
3+
"**/.yarn": true,
4+
"**/.pnp.*": true
5+
},
6+
"typescript.tsdk": ".yarn/sdks/typescript/lib",
7+
"typescript.enablePromptUseWorkspaceTsdk": true
8+
}

.yarn/releases/yarn-3.1.1.cjs

Lines changed: 0 additions & 768 deletions
This file was deleted.

0 commit comments

Comments
 (0)