Skip to content

Commit 1cbc609

Browse files
committed
Setup windows arm builds
1 parent 5704c7f commit 1cbc609

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

.github/workflows/release.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,25 @@ jobs:
180180
file-name: powersync_x64.dll
181181
tag: ${{ needs.draft_release.outputs.tag }}
182182

183+
publish_windows_aarch64:
184+
name: Publish Windows aarch64
185+
needs: [draft_release]
186+
runs-on: windows-latest
187+
steps:
188+
- uses: actions/checkout@v3
189+
with:
190+
submodules: true
191+
192+
- name: Build binary
193+
run: bash tool/build_windows.sh aarch64
194+
195+
- name: Upload binary
196+
uses: ./.github/actions/upload
197+
with:
198+
repo-token: ${{ secrets.GITHUB_TOKEN }}
199+
file-name: powersync_aarch64.dll
200+
tag: ${{ needs.draft_release.outputs.tag }}
201+
183202
publish_macOS:
184203
name: Publish macOS
185204
needs: [draft_release]

.github/workflows/windows.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,28 @@ jobs:
2222
repo-token: ${{ secrets.GITHUB_TOKEN }}
2323
file-name: powersync_x64.dll
2424
tag: ${{ github.ref_name }}
25+
26+
build_aarch64:
27+
name: Building Windows aarch64
28+
runs-on: windows-arm64
29+
steps:
30+
- uses: actions/checkout@v3
31+
with:
32+
submodules: true
33+
34+
- name: Install Rust Nightly
35+
uses: dtolnay/rust-toolchain@stable
36+
with:
37+
toolchain: nightly-2024-05-18
38+
components: rust-src
39+
40+
- name: Build binaries
41+
run: bash tool/build_windows.sh aarch64
42+
43+
- name: Upload binary
44+
if: github.event_name == 'workflow_dispatch'
45+
uses: ./.github/actions/upload
46+
with:
47+
repo-token: ${{ secrets.GITHUB_TOKEN }}
48+
file-name: powersync_aarch64.so
49+
tag: ${{ github.ref_name }}

0 commit comments

Comments
 (0)