@@ -130,12 +130,35 @@ jobs:
130
130
run : bash tool/build_linux.sh x64
131
131
132
132
- name : Upload binary
133
- uses : svenstaro/ upload-release-action@v2
133
+ uses : ./.github/actions/ upload
134
134
with :
135
- repo_token : ${{ secrets.GITHUB_TOKEN }}
136
- overwrite : true
137
- file : libpowersync_x64.so
138
- asset_name : libpowersync_x64.so
135
+ repo-token : ${{ secrets.GITHUB_TOKEN }}
136
+ file-name : libpowersync_x64.so
137
+ tag : ${{ needs.draft_release.outputs.tag }}
138
+
139
+ publish_linux_aarch64 :
140
+ name : Publish Linux aarch64
141
+ needs : [draft_release]
142
+ runs-on : ubuntu-latest
143
+ steps :
144
+ - uses : actions/checkout@v3
145
+ with :
146
+ submodules : true
147
+
148
+ - name : Install Rust Nightly
149
+ uses : dtolnay/rust-toolchain@stable
150
+ with :
151
+ toolchain : nightly-2024-05-18
152
+ components : rust-src
153
+
154
+ - name : Build binaries
155
+ run : bash tool/build_linux.sh aarch64
156
+
157
+ - name : Upload binary
158
+ uses : ./.github/actions/upload
159
+ with :
160
+ repo-token : ${{ secrets.GITHUB_TOKEN }}
161
+ file-name : libpowersync_aarch64.so
139
162
tag : ${{ needs.draft_release.outputs.tag }}
140
163
141
164
publish_windows_x64 :
@@ -150,13 +173,11 @@ jobs:
150
173
- name : Build binary
151
174
run : bash tool/build_windows.sh x64
152
175
153
- - name : Upload binary x64
154
- uses : svenstaro/ upload-release-action@v2
176
+ - name : Upload binary
177
+ uses : ./.github/actions/ upload
155
178
with :
156
- repo_token : ${{ secrets.GITHUB_TOKEN }}
157
- overwrite : true
158
- file : powersync_x64.dll
159
- asset_name : powersync_x64.dll
179
+ repo-token : ${{ secrets.GITHUB_TOKEN }}
180
+ file-name : powersync_x64.dll
160
181
tag : ${{ needs.draft_release.outputs.tag }}
161
182
162
183
publish_macOS :
@@ -171,11 +192,9 @@ jobs:
171
192
- name : Build binary
172
193
run : bash tool/build_macos.sh aarch64
173
194
174
- - name : Upload binary aarch64
175
- uses : svenstaro/ upload-release-action@v2
195
+ - name : Upload binary
196
+ uses : ./.github/actions/ upload
176
197
with :
177
- repo_token : ${{ secrets.GITHUB_TOKEN }}
178
- overwrite : true
179
- file : libpowersync_aarch64.dylib
180
- asset_name : libpowersync_aarch64.dylib
198
+ repo-token : ${{ secrets.GITHUB_TOKEN }}
199
+ file-name : libpowersync_aarch64.dylib
181
200
tag : ${{ needs.draft_release.outputs.tag }}
0 commit comments