File tree 4 files changed +7
-33
lines changed
4 files changed +7
-33
lines changed Original file line number Diff line number Diff line change 11
11
with :
12
12
submodules : true
13
13
14
- - name : Build binary x64
14
+ - name : Install Rust Nightly
15
+ uses : dtolnay/rust-toolchain@stable
16
+ with :
17
+ toolchain : nightly-2024-05-18
18
+ components : rust-src
19
+
20
+ - name : Build binaries
15
21
run : bash tool/build_linux.sh x64
16
22
17
23
- name : Upload binary
22
28
file : libpowersync_x64.so
23
29
asset_name : libpowersync_x64.so
24
30
tag : v0.1.6
25
-
26
- - name : Build binary aarch64
27
- run : bash tool/build_linux.sh
28
-
29
- - name : Upload binary
30
- uses : svenstaro/upload-release-action@v2
31
- with :
32
- repo_token : ${{ secrets.GITHUB_TOKEN }}
33
- overwrite : true
34
- file : libpowersync_aarch64.so
35
- asset_name : libpowersync_aarch64.so
36
- tag : v0.1.6
Original file line number Diff line number Diff line change 22
22
file : powersync_x64.dll
23
23
asset_name : powersync_x64.dll
24
24
tag : v0.1.6
25
-
26
- - name : Build binary aarch64
27
- run : bash tool/build_windows.sh
28
-
29
- - name : Upload binary
30
- uses : svenstaro/upload-release-action@v2
31
- with :
32
- repo_token : ${{ secrets.GITHUB_TOKEN }}
33
- overwrite : true
34
- file : powersync_aarch64.dll
35
- asset_name : powersync_aarch64.dll
36
- tag : v0.1.6
Original file line number Diff line number Diff line change 1
1
if [ " $1 " = " x64" ]; then
2
- rustup toolchain install nightly-2024-05-18-x86_64-unknown-linux-gnu
3
- rustup component add rust-src --toolchain nightly-2024-05-18-x86_64-unknown-linux-gnu
4
2
rustup target add target x86_64-unknown-linux-gnu
5
3
cargo build -p powersync_loadable --release
6
4
mv " target/release/libpowersync.so" " libpowersync_x64.so"
7
5
else
8
- rustup toolchain install nightly-2024-05-18-aarch64-unknown-linux-gnu
9
- rustup component add rust-src --toolchain nightly-2024-05-18-aarch64-unknown-linux-gnu
10
6
rustup target add aarch64-unknown-linux-gnu
11
7
cargo build -p powersync_loadable --release
12
8
mv " target/release/libpowersync.so" " libpowersync_aarch64.so"
Original file line number Diff line number Diff line change 1
1
if [ " $1 " = " x64" ]; then
2
- rustup toolchain install nightly-2024-05-18-x86_64-pc-windows-msvc
3
- rustup component add rust-src --toolchain nightly-2024-05-18-x86_64-pc-windows-msvc
4
2
rustup target add x86_64-pc-windows-msvc
5
3
cargo build -p powersync_loadable --release
6
4
mv " target/release/powersync.dll" " powersync_x64.dll"
7
5
else
8
- rustup toolchain install nightly-2024-05-18-aarch64-pc-windows-msvc
9
- rustup component add rust-src --toolchain nightly-2024-05-18-aarch64-pc-windows-msvc
10
6
rustup target add aarch64-pc-windows-msvc
11
7
cargo build -p powersync_loadable --release
12
8
mv " target/release/powersync.dll" " powersync_aarch64.dll"
You can’t perform that action at this time.
0 commit comments