File tree Expand file tree Collapse file tree 6 files changed +49
-19
lines changed
lib/src/open_factory/native Expand file tree Collapse file tree 6 files changed +49
-19
lines changed Original file line number Diff line number Diff line change 11name : Publish packages
2- on : workflow_dispatch
2+ on :
3+ push :
4+ tags :
5+ - " powersync-v[0-9]+.[0-9]+.[0-9]+"
6+ workflow_dispatch :
37
48jobs :
59 publish-packages :
913 id-token : write # Required for authentication using OIDC
1014 runs-on : [ubuntu-latest]
1115 steps :
12- - uses : actions/checkout@v3
13- - uses : subosito/flutter-action@v2
14- with :
15- flutter-version : ' 3.x'
16- channel : ' stable'
17- - uses : bluefireteam/melos-action@v3
16+ - uses : actions/checkout@v4
17+
18+ - name : Install Flutter
19+ uses : subosito/flutter-action@v2
1820 with :
19- publish : true
21+ flutter-version : " 3.x"
22+ channel : " stable"
23+
24+ - name : Set Powersync Core Version
25+ run : echo "CORE_VERSION=0.1.8" >> $GITHUB_ENV
26+ - name : Download Binaries
27+ run : sh tool/download_binaries.sh
28+ - name : Publish powersync
29+ run : |
30+ dart pub publish --force
31+ working-directory : packages/powersync
32+ - name : Publish powersync_attachments_helper
33+ run : |
34+ dart pub publish --force
35+ working-directory : packages/powersync_attachments_helper
36+ - name : Publish powersync_flutter_libs
37+ run : |
38+ dart pub publish --force
39+ working-directory : packages/powersync_flutter_libs
Original file line number Diff line number Diff line change @@ -4,11 +4,6 @@ name: Compile Assets and Create Draft Release
44on :
55 push :
66 tags :
7- # Trigger on tags beginning with 'v'
8- # Note that `melos version ...` adds the package name as a suffix
9- # This action is not compatible with tags such as `powersync-v1.1.1`
10- # marvinpinto/action-automatic-releases struggles to generate changelogs
11- # Be sure to manually tag the commit to trigger this action
127 - " powersync-v[0-9]+.[0-9]+.[0-9]+"
138
149jobs :
Original file line number Diff line number Diff line change @@ -84,8 +84,9 @@ class PowerSyncOpenFactory extends AbstractPowerSyncOpenFactory {
8484 case Abi .macosX64:
8585 return 'libpowersync.dylib' ;
8686 case Abi .linuxX64:
87- return 'libpowersync.so' ;
88- case Abi .windowsArm64:
87+ return 'libpowersync_x64.so' ;
88+ case Abi .linuxArm64:
89+ return 'libpowersync_aarch64.so' ;
8990 case Abi .windowsX64:
9091 return 'powersync.dll' ;
9192 case Abi .androidIA32:
Original file line number Diff line number Diff line change @@ -52,8 +52,9 @@ class TestOpenFactory extends PowerSyncOpenFactory {
5252 case Abi .macosX64:
5353 return '$path /libpowersync.dylib' ;
5454 case Abi .linuxX64:
55- return '$path /libpowersync.so' ;
56- case Abi .windowsArm64:
55+ return '$path /libpowersync_x64.so' ;
56+ case Abi .linuxArm64:
57+ return '$path /libpowersync_aarch64.so' ;
5758 case Abi .windowsX64:
5859 return '$path /powersync.dll' ;
5960 case Abi .androidIA32:
Original file line number Diff line number Diff line change @@ -35,8 +35,9 @@ class TestOpenFactory extends PowerSyncOpenFactory {
3535 case Abi .macosX64:
3636 return '$path /libpowersync.dylib' ;
3737 case Abi .linuxX64:
38- return '$path /libpowersync.so' ;
39- case Abi .windowsArm64:
38+ return '$path /libpowersync_x64.so' ;
39+ case Abi .linuxArm64:
40+ return '$path /libpowersync_aarch64.so' ;
4041 case Abi .windowsX64:
4142 return '$path /powersync.dll' ;
4243 case Abi .androidIA32:
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ if [ -z " $CORE_VERSION " ]; then
4+ echo " CORE_VERSION is not set" ;
5+ exit 2;
6+ fi
7+
8+ github=" https://github.com/powersync-ja/powersync-sqlite-core/releases/download/$CORE_VERSION "
9+
10+ curl " ${github} /libpowersync_aarch64.so" -o packages/powersync_flutter_libs/linux/libpowersync_aarch64.so --create-dirs -L -f
11+ curl " ${github} /libpowersync_x64.so" -o packages/powersync_flutter_libs/linux/libpowersync_x64.so --create-dirs -L -f
12+ curl " ${github} /powersync_x64.dll" -o packages/powersync_flutter_libs/windows/powersync.dll --create-dirs -L -f
You can’t perform that action at this time.
0 commit comments