forked from simolus3/sqlite3.dart
-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (41 loc) · 1.4 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Build and upload SQLite3 WASM
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+-powersync.[0-9]+.[0-9]+.[0-9]+"
jobs:
compile_sqlite3_wasm:
strategy:
matrix:
os: [macos-latest]
name: Compile sqlite3 wasm for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Build wasm
uses: ./.github/actions/build-wasm
- name: Upload sqlite3 binary
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
overwrite: true
file: sqlite3/.dart_tool/sqlite3_build/sqlite3_opt.wasm
asset_name: sqlite3.wasm
body: "PowerSync SQLite3 WASM binary"
tag: ${{ github.ref_name }}
- name: Upload sqlite3 debug binary
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
overwrite: true
file: sqlite3/.dart_tool/sqlite3_build/sqlite3_debug.init.wasm
asset_name: sqlite3.debug.wasm
tag: ${{ github.ref_name }}
- name: Upload sqlite3 multipleciphers binary
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
overwrite: true
file: sqlite3/.dart_tool/sqlite3_build/sqlite3mc.wasm
asset_name: sqlite3mc.wasm
tag: ${{ github.ref_name }}