Skip to content

Commit 20a40b4

Browse files
committed
Reuse compile workflow for release
1 parent 0d03303 commit 20a40b4

File tree

2 files changed

+5
-23
lines changed

2 files changed

+5
-23
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
jobs:
1212
setup:
1313
uses: ./.github/workflows/prepare_wasm.yml
14-
14+
1515
build:
1616
runs-on: ubuntu-latest
1717
needs: [setup]

.github/workflows/release.yml

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
- 'powersync-v[0-9]+.[0-9]+.[0-9]+'
88

99
jobs:
10+
setup:
11+
uses: ./.github/workflows/prepare_wasm.yml
12+
1013
build:
1114
runs-on: macos-latest
1215
permissions:
@@ -15,28 +18,7 @@ jobs:
1518
steps:
1619
- name: Checkout Repository
1720
uses: actions/checkout@v4
18-
19-
- name: Install Flutter
20-
uses: subosito/flutter-action@v2
21-
with:
22-
flutter-version: '3.x'
23-
channel: 'stable'
24-
- name: Setup Homebrew
25-
id: set-up-homebrew
26-
uses: Homebrew/actions/setup-homebrew@master
27-
- name: Setup macOS build dependencies
28-
run: brew install cmake llvm lld binaryen wasi-libc wasi-runtimes
29-
30-
- name: Install Melos
31-
run: flutter pub global activate melos
32-
33-
- name: Install Dependencies and Compile Assets
34-
run: melos prepare
35-
36-
- name: Compile sqlite3.wasm on macOS
37-
if: runner.os == 'macOS'
38-
working-directory: packages/sqlite3_wasm_build
39-
run: ./build.sh
21+
- uses: ./.github/actions/prepare
4022

4123
- name: Create Draft Release
4224
env:

0 commit comments

Comments
 (0)