File tree 2 files changed +31
-0
lines changed
2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -158,3 +158,24 @@ jobs:
158
158
file : powersync_x64.dll
159
159
asset_name : powersync_x64.dll
160
160
tag : ${{ needs.draft_release.outputs.tag }}
161
+
162
+ publish_macOS :
163
+ name : Publish macOS
164
+ needs : [draft_release]
165
+ runs-on : macos-latest
166
+ steps :
167
+ - uses : actions/checkout@v3
168
+ with :
169
+ submodules : true
170
+
171
+ - name : Build binary
172
+ run : bash tool/build_macos.sh aarch64
173
+
174
+ - name : Upload binary aarch64
175
+ uses : svenstaro/upload-release-action@v2
176
+ with :
177
+ repo_token : ${{ secrets.GITHUB_TOKEN }}
178
+ overwrite : true
179
+ file : libpowersync_aarch64.dylib
180
+ asset_name : libpowersync_aarch64.dylib
181
+ tag : ${{ needs.draft_release.outputs.tag }}
Original file line number Diff line number Diff line change
1
+ if [ " $1 " = " x64" ]; then
2
+ # Note: x86_64-apple-darwin has not been tested.
3
+ rustup target add target x86_64-apple-darwin
4
+ cargo build -p powersync_loadable --release
5
+ mv " target/release/libpowersync.dylib" " libpowersync_x64.dylib"
6
+ else
7
+ rustup target add aarch64-apple-darwin
8
+ cargo build -p powersync_loadable --release
9
+ mv " target/release/libpowersync.dylib" " libpowersync_aarch64.dylib"
10
+ fi
You can’t perform that action at this time.
0 commit comments