Skip to content

Commit 2434b0f

Browse files
committed
Test removing target
1 parent f7e0919 commit 2434b0f

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

.github/workflows/linux.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
toolchain: nightly-2024-05-18
1818
components: rust-src
1919

20-
- name: Build binaries
20+
- name: Build binary x64
2121
run: bash tool/build_linux.sh x64
2222

2323
- name: Upload binary
@@ -29,7 +29,7 @@ jobs:
2929
asset_name: libpowersync_x64.so
3030
tag: v0.1.6
3131

32-
- name: Build binaries
32+
- name: Build binary aarch64
3333
run: bash tool/build_linux.sh
3434

3535
- name: Upload binary

.github/workflows/windows.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,11 @@ jobs:
1616
with:
1717
toolchain: nightly-2024-05-18
1818
components: rust-src
19-
targets: x86_64-pc-windows-msvc
2019

21-
- name: Setup
20+
- name: Build binary
2221
run: bash tool/build_windows.sh x64
2322

24-
- name: Upload binary
23+
- name: Upload binary x64
2524
uses: svenstaro/upload-release-action@v2
2625
with:
2726
repo_token: ${{ secrets.GITHUB_TOKEN }}
@@ -30,7 +29,7 @@ jobs:
3029
asset_name: powersync_x64.dll
3130
tag: v0.1.6
3231

33-
- name: Setup
32+
- name: Build binary aarch64
3433
run: bash tool/build_windows.sh
3534

3635
- name: Upload binary

tool/build_linux.sh

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ if [ "$1" = "x64" ]; then
33
cargo build -p powersync_loadable --release
44
mv "target/release/libpowersync.so" "libpowersync_x64.so"
55
else
6+
rustup target remove x86_64-unknown-linux-gnu
67
rustup target add aarch64-unknown-linux-gnu
78
cargo build -p powersync_loadable --release
89
mv "target/release/libpowersync.so" "libpowersync_aarch64.so"

tool/build_windows.sh

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ if [ "$1" = "x64" ]; then
33
cargo build -p powersync_loadable --release
44
mv "target/release/powersync.dll" "powersync_x64.dll"
55
else
6+
rustup target remove x86_64-pc-windows-msvc
67
rustup target add aarch64-pc-windows-msvc
78
cargo build -p powersync_loadable --release
89
mv "target/release/powersync.dll" "powersync_aarch64.dll"

0 commit comments

Comments
 (0)