@@ -237,3 +237,47 @@ jobs:
237237 repo-token : ${{ secrets.GITHUB_TOKEN }}
238238 file-name : libpowersync_x64.dylib
239239 tag : ${{ needs.draft_release.outputs.tag }}
240+
241+ poblish_wasm :
242+ name : Publish WASM builds
243+ needs : [draft_release]
244+ runs-on : ubuntu-latest
245+ steps :
246+ - uses : actions/checkout@v3
247+ with :
248+ submodules : true
249+
250+ - name : Install Rust Nightly
251+ uses : dtolnay/rust-toolchain@stable
252+ with :
253+ toolchain : nightly-2024-05-18
254+ components : rust-src
255+
256+ - name : Setup emsdk
257+ uses : mymindstorm/setup-emsdk@v14
258+ with :
259+ version : 3.1.68
260+
261+ - name : Build WASM SIDE_MODULE
262+ run : ./tool/build_wasm.sh
263+
264+ - name : Upload libpowersync.wasm
265+ uses : ./.github/actions/upload
266+ with :
267+ repo-token : ${{ secrets.GITHUB_TOKEN }}
268+ file-name : libpowersync.wasm
269+ tag : ${{ needs.draft_release.outputs.tag }}
270+
271+ - name : Upload libpowersync-async.wasm
272+ uses : ./.github/actions/upload
273+ with :
274+ repo-token : ${{ secrets.GITHUB_TOKEN }}
275+ file-name : libpowersync-async.wasm
276+ tag : ${{ needs.draft_release.outputs.tag }}
277+
278+ - name : Upload libpowersync.a
279+ uses : ./.github/actions/upload
280+ with :
281+ repo-token : ${{ secrets.GITHUB_TOKEN }}
282+ file-name : libpowersync.a
283+ tag : ${{ needs.draft_release.outputs.tag }}
0 commit comments