File tree 4 files changed +35
-27
lines changed
4 files changed +35
-27
lines changed Original file line number Diff line number Diff line change 16
16
with :
17
17
toolchain : nightly-2024-05-18
18
18
components : rust-src
19
- targets : x86_64-unknown-linux-gnu
20
19
21
- - name : Setup
22
- run : |
23
- cargo build -p powersync_loadable --release
24
- mv "target/release/libpowersync.so" "libpowersync_x64.so"
20
+ - name : Build binaries
21
+ run : bash tool/build_linux.sh x64
25
22
26
23
- name : Upload binary
27
24
uses : svenstaro/upload-release-action@v2
32
29
asset_name : libpowersync_x64.so
33
30
tag : v0.1.6
34
31
35
- build_aarch64 :
36
- name : Building Linux aarch64
37
- runs-on : ubuntu-latest
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
- targets : aarch64-unknown-linux-gnu
49
-
50
- - name : Setup
51
- run : |
52
- cargo build -p powersync_loadable --release --target aarch64-unknown-linux-gnu
53
- mv "target/release/libpowersync.so" "libpowersync_aarch64.so"
32
+ - name : Build binaries
33
+ run : bash tool/build_linux.sh
54
34
55
35
- name : Upload binary
56
36
uses : svenstaro/upload-release-action@v2
Original file line number Diff line number Diff line change 19
19
targets : x86_64-pc-windows-msvc
20
20
21
21
- name : Setup
22
- run : |
23
- cargo build -p powersync_loadable --release
24
- mv "target/release/powersync.dll" "powersync_x64.dll"
22
+ run : bash tool/build_windows.sh x64
25
23
26
24
- name : Upload binary
27
25
uses : svenstaro/upload-release-action@v2
31
29
file : powersync_x64.dll
32
30
asset_name : powersync_x64.dll
33
31
tag : v0.1.6
32
+
33
+ - name : Setup
34
+ run : bash tool/build_windows.sh
35
+
36
+ - name : Upload binary
37
+ uses : svenstaro/upload-release-action@v2
38
+ with :
39
+ repo_token : ${{ secrets.GITHUB_TOKEN }}
40
+ overwrite : true
41
+ file : powersync_aarch64.dll
42
+ asset_name : powersync_aarch64.dll
43
+ tag : v0.1.6
Original file line number Diff line number Diff line change
1
+ if [ " $1 " = " x64" ]; then
2
+ rustup target add target x86_64-unknown-linux-gnu
3
+ cargo build -p powersync_loadable --release
4
+ mv " target/release/libpowersync.so" " libpowersync_x64.so"
5
+ else
6
+ rustup target add aarch64-unknown-linux-gnu
7
+ cargo build -p powersync_loadable --release
8
+ mv " target/release/libpowersync.so" " libpowersync_aarch64.so"
9
+ fi
Original file line number Diff line number Diff line change
1
+ if [ " $1 " = " x64" ]; then
2
+ rustup target add x86_64-pc-windows-msvc
3
+ cargo build -p powersync_loadable --release
4
+ mv " target/release/powersync.dll" " powersync_x64.dll"
5
+ else
6
+ rustup target add aarch64-pc-windows-msvc
7
+ cargo build -p powersync_loadable --release
8
+ mv " target/release/powersync.dll" " powersync_aarch64.dll"
9
+ fi
You can’t perform that action at this time.
0 commit comments