Skip to content

Commit b58dd90

Browse files
committed
Build only x64
1 parent ac6247d commit b58dd90

File tree

4 files changed

+7
-33
lines changed

4 files changed

+7
-33
lines changed

.github/workflows/linux.yml

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

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
1521
run: bash tool/build_linux.sh x64
1622

1723
- name: Upload binary
@@ -22,15 +28,3 @@ jobs:
2228
file: libpowersync_x64.so
2329
asset_name: libpowersync_x64.so
2430
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

.github/workflows/windows.yml

-12
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,3 @@ jobs:
2222
file: powersync_x64.dll
2323
asset_name: powersync_x64.dll
2424
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

tool/build_linux.sh

-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
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
42
rustup target add target x86_64-unknown-linux-gnu
53
cargo build -p powersync_loadable --release
64
mv "target/release/libpowersync.so" "libpowersync_x64.so"
75
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
106
rustup target add aarch64-unknown-linux-gnu
117
cargo build -p powersync_loadable --release
128
mv "target/release/libpowersync.so" "libpowersync_aarch64.so"

tool/build_windows.sh

-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
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
42
rustup target add x86_64-pc-windows-msvc
53
cargo build -p powersync_loadable --release
64
mv "target/release/powersync.dll" "powersync_x64.dll"
75
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
106
rustup target add aarch64-pc-windows-msvc
117
cargo build -p powersync_loadable --release
128
mv "target/release/powersync.dll" "powersync_aarch64.dll"

0 commit comments

Comments
 (0)