Skip to content

Commit f54fd50

Browse files
committed
Add aarch64 build
1 parent 5696da9 commit f54fd50

File tree

1 file changed

+31
-3
lines changed

1 file changed

+31
-3
lines changed

.github/workflows/linux.yml

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ on:
33
pull_request:
44
name: "linux"
55
jobs:
6-
build:
7-
name: Building Linux
6+
build_x86_64:
7+
name: Building Linux x86_64
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v3
@@ -29,4 +29,32 @@ jobs:
2929
repo_token: ${{ secrets.GITHUB_TOKEN }}
3030
file: libpowersync_x64.so
3131
asset_name: libpowersync_x64.so
32-
tag: 0.1.6
32+
tag: v0.1.6
33+
34+
build_aarch64:
35+
name: Building Linux aarch64
36+
runs-on: ubuntu-latest
37+
steps:
38+
- uses: actions/checkout@v3
39+
with:
40+
submodules: true
41+
42+
- name: Install Rust Nightly
43+
uses: dtolnay/rust-toolchain@stable
44+
with:
45+
toolchain: nightly-2024-05-18
46+
components: rust-src
47+
targets: aarch64-unknown-linux-gnu
48+
49+
- name: Setup
50+
run: |
51+
cargo build -p powersync_loadable --release
52+
mv "target/release/libpowersync.so" "libpowersync_aarch64.so"
53+
54+
- name: Upload binary
55+
uses: svenstaro/upload-release-action@v2
56+
with:
57+
repo_token: ${{ secrets.GITHUB_TOKEN }}
58+
file: libpowersync_aarch64.so
59+
asset_name: libpowersync_aarch64.so
60+
tag: v0.1.6

0 commit comments

Comments
 (0)