File tree Expand file tree Collapse file tree 2 files changed +38
-1
lines changed Expand file tree Collapse file tree 2 files changed +38
-1
lines changed Original file line number Diff line number Diff line change 2
2
push :
3
3
tags :
4
4
- " *"
5
+ workflow_dispatch :
5
6
name : " linux"
6
7
jobs :
7
8
build_x86_64 :
20
21
21
22
- name : Build binaries
22
23
run : bash tool/build_linux.sh x64
24
+
25
+ - name : Upload binary
26
+ if : github.event_name == 'workflow_dispatch'
27
+ uses : svenstaro/upload-release-action@v2
28
+ with :
29
+ repo_token : ${{ secrets.GITHUB_TOKEN }}
30
+ overwrite : true
31
+ file : libpowersync_x64.so
32
+ asset_name : libpowersync_x64.so
33
+ tag : ${{ github.ref_name }}
34
+
35
+ build_aarch64 :
36
+ name : Building Linux aarch64
37
+ runs-on : ubuntu-arm64
38
+ steps :
39
+ - uses : actions/checkout@v3
40
+ with :
41
+ submodules : true
42
+
43
+ - name : Install Rust Nightly
44
+ uses : dtolnay/rust-toolchain@stable
45
+ with :
46
+ toolchain : nightly-2024-05-18
47
+ components : rust-src
48
+
49
+ - name : Build binaries
50
+ run : bash tool/build_linux.sh aarch64
51
+
52
+ - name : Upload binary
53
+ if : github.event_name == 'workflow_dispatch'
54
+ uses : svenstaro/upload-release-action@v2
55
+ with :
56
+ repo_token : ${{ secrets.GITHUB_TOKEN }}
57
+ overwrite : true
58
+ file : libpowersync_aarch64.so
59
+ asset_name : libpowersync_aarch64.so
60
+ tag : ${{ github.ref_name }}
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ if [ "$1" = "x64" ]; then
3
3
cargo build -p powersync_loadable --release
4
4
mv " target/release/libpowersync.so" " libpowersync_x64.so"
5
5
else
6
- # Note: aarch64-unknown-linux-gnu has not been tested.
7
6
rustup target add aarch64-unknown-linux-gnu
8
7
cargo build -p powersync_loadable --release
9
8
mv " target/release/libpowersync.so" " libpowersync_aarch64.so"
You can’t perform that action at this time.
0 commit comments