Skip to content

Commit aa390a0

Browse files
Copilotlklimek
andcommitted
fix: copy sqlite3 import lib to mingw lib dir for Windows cross-compilation
Co-authored-by: lklimek <842586+lklimek@users.noreply.github.com>
1 parent 00e6742 commit aa390a0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,13 @@ jobs:
115115

116116
- name: Windows libsql
117117
if: ${{ matrix.target == 'x86_64-pc-windows-gnu' }}
118-
run: curl -OL https://www.sqlite.org/2024/sqlite-dll-win-x64-3460100.zip && sudo unzip -o sqlite-dll-win-x64-3460100.zip -d winlibs && sudo chown -R runner:docker winlibs/ && pwd && ls -lah && cd winlibs && x86_64-w64-mingw32-dlltool -d sqlite3.def -l libsqlite3.a && ls -lah && cd ..
118+
run: curl -OL https://www.sqlite.org/2024/sqlite-dll-win-x64-3460100.zip && sudo unzip -o sqlite-dll-win-x64-3460100.zip -d winlibs && sudo chown -R runner:docker winlibs/ && pwd && ls -lah && cd winlibs && x86_64-w64-mingw32-dlltool -d sqlite3.def -l libsqlite3.a && ls -lah && cd .. && sudo cp winlibs/libsqlite3.a /usr/x86_64-w64-mingw32/lib/libsqlite3.a
119119

120120
- name: Build project
121121
run: |
122122
cargo build --release --target ${{ matrix.target }}
123123
mv target/${{ matrix.target }}/release/dash-evo-tool${{ matrix.ext }} dash-evo-tool/dash-evo-tool${{ matrix.ext }}
124+
if [ -f winlibs/sqlite3.dll ]; then cp winlibs/sqlite3.dll dash-evo-tool/sqlite3.dll; fi
124125
125126
- name: Package release
126127
run: |

0 commit comments

Comments
 (0)