Skip to content

Commit 8828f32

Browse files
committed
Fix windows cargo build
1 parent b59a838 commit 8828f32

File tree

2 files changed

+7
-20
lines changed

2 files changed

+7
-20
lines changed

.github/workflows/windows.yml

+2-18
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,10 @@ jobs:
1818
components: rust-src
1919
targets: x86_64-pc-windows-msvc
2020

21-
# - name: Install Perl
22-
# uses: shogo82148/actions-setup-perl@v1
23-
# with:
24-
# distribution: strawberry
25-
# perl-version: "5.32"
26-
27-
# - name: Install make with Chocolatey
28-
# shell: bash
29-
# run: choco install make
30-
31-
# - name: Set Windows environment variables
32-
# shell: pwsh
33-
# run: |
34-
# echo "LIBCLANG_PATH=$((gcm clang).source -replace "clang.exe")" >> $env:GITHUB_ENV
35-
# echo "OPENSSL_SRC_PERL=C:/Strawberry/perl/bin/perl" >> $env:GITHUB_ENV
36-
3721
- name: Setup
3822
run: |
39-
cargo build -p powersync_loadable --release --target x86_64-pc-windows-msvc -Zbuild-std
40-
mv "target/x86_64-pc-windows-msvc/release/powersync.dll" "powersync_x64.dll"
23+
cargo build -p powersync_loadable --release
24+
mv "target/release/powersync.dll" "powersync_x64.dll"
4125
4226
- name: Upload binary
4327
uses: svenstaro/upload-release-action@v2

README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,15 @@ git submodule update --init --recursive
3939

4040
```sh
4141
# Build the shell
42-
cargo build -t powersync_sqlite
42+
cargo build -p powersync_sqlite
4343
./target/debug/powersync_sqlite test.db "select powersync_rs_version()"
4444

4545
# Build the loadable extension
4646
cargo build -p powersync_loadable
47-
sqlite3 ":memory:" ".load ./target/debug/libpowersync" "select powersync_rs_version()"
47+
sqlite3 ":memory:" ".load ./target/debug/libpowersync" "select powersync_rs_version()" #This requires sqlite3 installed
48+
49+
# Build the release loadable extension
50+
cargo build -p powersync_loadable --release
4851

4952
# Build for iOS
5053
./all-ios-loadable.sh

0 commit comments

Comments
 (0)