Skip to content

Commit ac6247d

Browse files
committed
Test building linux
1 parent 2434b0f commit ac6247d

File tree

4 files changed

+8
-14
lines changed

4 files changed

+8
-14
lines changed

.github/workflows/linux.yml

-6
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ jobs:
1111
with:
1212
submodules: true
1313

14-
- name: Install Rust Nightly
15-
uses: dtolnay/rust-toolchain@stable
16-
with:
17-
toolchain: nightly-2024-05-18
18-
components: rust-src
19-
2014
- name: Build binary x64
2115
run: bash tool/build_linux.sh x64
2216

.github/workflows/windows.yml

-6
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ jobs:
1111
with:
1212
submodules: true
1313

14-
- name: Install Rust Nightly
15-
uses: dtolnay/rust-toolchain@stable
16-
with:
17-
toolchain: nightly-2024-05-18
18-
components: rust-src
19-
2014
- name: Build binary
2115
run: bash tool/build_windows.sh x64
2216

tool/build_linux.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
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
24
rustup target add target x86_64-unknown-linux-gnu
35
cargo build -p powersync_loadable --release
46
mv "target/release/libpowersync.so" "libpowersync_x64.so"
57
else
6-
rustup target remove x86_64-unknown-linux-gnu
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
710
rustup target add aarch64-unknown-linux-gnu
811
cargo build -p powersync_loadable --release
912
mv "target/release/libpowersync.so" "libpowersync_aarch64.so"

tool/build_windows.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
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
24
rustup target add x86_64-pc-windows-msvc
35
cargo build -p powersync_loadable --release
46
mv "target/release/powersync.dll" "powersync_x64.dll"
57
else
6-
rustup target remove x86_64-pc-windows-msvc
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
710
rustup target add aarch64-pc-windows-msvc
811
cargo build -p powersync_loadable --release
912
mv "target/release/powersync.dll" "powersync_aarch64.dll"

0 commit comments

Comments
 (0)