File tree Expand file tree Collapse file tree 2 files changed +63
-2
lines changed Expand file tree Collapse file tree 2 files changed +63
-2
lines changed Original file line number Diff line number Diff line change 1+ on :
2+ push :
3+ workflow_dispatch :
4+ name : " macos"
5+ jobs :
6+ build_macOS_aarch64 :
7+ name : Building macOS aarch64
8+ runs-on : macos-latest
9+ steps :
10+ - uses : actions/checkout@v3
11+ with :
12+ submodules : true
13+
14+ - name : Build binary
15+ run : bash tool/build_macos.sh aarch64
16+
17+ - name : Upload binary
18+ if : github.event_name == 'workflow_dispatch'
19+ uses : ./.github/actions/upload
20+ with :
21+ repo-token : ${{ secrets.GITHUB_TOKEN }}
22+ file-name : libpowersync_aarch64.dylib
23+ tag : ${{ github.ref_name }}
24+
25+ build_macOS_x64 :
26+ name : Building macOS x64
27+ runs-on : macos-12
28+ steps :
29+ - uses : actions/checkout@v3
30+ with :
31+ submodules : true
32+
33+ - name : Build binary
34+ run : bash tool/build_macos.sh x64
35+
36+ - name : Upload binary
37+ if : github.event_name == 'workflow_dispatch'
38+ uses : ./.github/actions/upload
39+ with :
40+ repo-token : ${{ secrets.GITHUB_TOKEN }}
41+ file-name : libpowersync_x64.dylib
42+ tag : ${{ github.ref_name }}
Original file line number Diff line number Diff line change @@ -176,8 +176,8 @@ jobs:
176176 file-name : powersync_x64.dll
177177 tag : ${{ needs.draft_release.outputs.tag }}
178178
179- publish_macOS :
180- name : Publish macOS
179+ publish_macOS_aarch64 :
180+ name : Publish macOS aarch64
181181 needs : [draft_release]
182182 runs-on : macos-latest
183183 steps :
@@ -194,3 +194,22 @@ jobs:
194194 repo-token : ${{ secrets.GITHUB_TOKEN }}
195195 file-name : libpowersync_aarch64.dylib
196196 tag : ${{ needs.draft_release.outputs.tag }}
197+
198+ publish_macOS_x64 :
199+ name : Publish macOS x64
200+ needs : [draft_release]
201+ runs-on : macos-12
202+ steps :
203+ - uses : actions/checkout@v3
204+ with :
205+ submodules : true
206+
207+ - name : Build binary
208+ run : bash tool/build_macos.sh x64
209+
210+ - name : Upload binary
211+ uses : ./.github/actions/upload
212+ with :
213+ repo-token : ${{ secrets.GITHUB_TOKEN }}
214+ file-name : libpowersync_x64.dylib
215+ tag : ${{ needs.draft_release.outputs.tag }}
You can’t perform that action at this time.
0 commit comments