Skip to content

Commit cb7e80f

Browse files
committed
Only upload for releases
1 parent 11e096b commit cb7e80f

File tree

4 files changed

+2
-18
lines changed

4 files changed

+2
-18
lines changed

.github/workflows/linux.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,3 @@ jobs:
2020

2121
- name: Build binaries
2222
run: bash tool/build_linux.sh x64
23-
24-
- name: Upload binary
25-
uses: svenstaro/upload-release-action@v2
26-
with:
27-
repo_token: ${{ secrets.GITHUB_TOKEN }}
28-
overwrite: true
29-
file: libpowersync_x64.so
30-
asset_name: libpowersync_x64.so
31-
tag: ${{ github.ref_name }}

.github/workflows/windows.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,3 @@ jobs:
1414

1515
- name: Build binary
1616
run: bash tool/build_windows.sh x64
17-
18-
- name: Upload binary x64
19-
uses: svenstaro/upload-release-action@v2
20-
with:
21-
repo_token: ${{ secrets.GITHUB_TOKEN }}
22-
overwrite: true
23-
file: powersync_x64.dll
24-
asset_name: powersync_x64.dll
25-
tag: ${{ github.ref_name }}

tool/build_linux.sh

Lines changed: 1 addition & 0 deletions
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+
#Note: aarch64-unknown-linux-gnu has not been tested.
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

Lines changed: 1 addition & 0 deletions
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+
#Note: aarch64-pc-windows-msvc has not been tested.
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)