Skip to content

Commit b14ac00

Browse files
committed
fix
1 parent 204f83a commit b14ac00

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -121,16 +121,6 @@ jobs:
121121
cmake --build _tiledb_core/build --config Release -j4
122122
cmake --build _tiledb_core/build --config Release --target install
123123
124-
- name: "Setup Windows DLL paths"
125-
if: inputs.libtiledb_ref && startsWith(matrix.os, 'windows')
126-
run: |
127-
# Set PATH for Windows DLLs - persists to subsequent steps
128-
WIN_TILEDB_BIN=$(cygpath -w "${GITHUB_WORKSPACE}/_tiledb_core/dist/bin")
129-
WIN_VCPKG_BIN=$(cygpath -w "${GITHUB_WORKSPACE}/_tiledb_core/build/vcpkg_installed/x64-windows/bin")
130-
echo "$WIN_TILEDB_BIN" >> $GITHUB_PATH
131-
echo "$WIN_VCPKG_BIN" >> $GITHUB_PATH
132-
echo "PYTHONPATH=${GITHUB_WORKSPACE}" >> $GITHUB_ENV
133-
134124
- name: "Build and Install TileDB-Py"
135125
run: |
136126
if [[ -n "${{ inputs.libtiledb_ref }}" ]]; then
@@ -144,6 +134,18 @@ jobs:
144134
pip install --verbose ${WHEEL_NAME}[test]
145135
fi
146136
137+
- name: "Copy TileDB DLLs to package (Windows)"
138+
if: inputs.libtiledb_ref && runner.os == 'Windows'
139+
run: |
140+
$WORKSPACE = "${{ github.workspace }}".Replace('/', '\')
141+
$SITE_PACKAGES = python -c "import sysconfig; print(sysconfig.get_path('purelib'))"
142+
Write-Host "Copying DLLs from $WORKSPACE\_tiledb_core\dist\bin to $SITE_PACKAGES\tiledb\"
143+
Copy-Item "$WORKSPACE\_tiledb_core\dist\bin\*.dll" "$SITE_PACKAGES\tiledb\" -Verbose -ErrorAction Stop
144+
Write-Host "Copying vcpkg DLLs from $WORKSPACE\_tiledb_core\build\vcpkg_installed\x64-windows\bin"
145+
Copy-Item "$WORKSPACE\_tiledb_core\build\vcpkg_installed\x64-windows\bin\*.dll" "$SITE_PACKAGES\tiledb\" -Verbose -ErrorAction Stop
146+
Write-Host "DLL copy completed successfully"
147+
shell: powershell
148+
147149
- name: "Run tests"
148150
run: |
149151
PROJECT_CWD=$PWD

0 commit comments

Comments
 (0)