fix: misc fix for Windows(BUILD_SHARED_LIBS, CI) (#296)

This commit is contained in:
Jalin Wang
2026-04-02 09:23:35 +08:00
committed by GitHub
parent 7af6a31ae8
commit ca4b893755
18 changed files with 127 additions and 45 deletions
+6 -5
View File
@@ -4,20 +4,21 @@ on:
workflow_call:
workflow_dispatch:
permissions:
contents: read
jobs:
# Windows build and test matrix
build-and-test-windows:
name: Build & Test (${{ matrix.platform }})
runs-on: ${{ matrix.os }}
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
include:
- os: windows-2022
platform: windows-2022-x64
- os: windows-2025
platform: windows-2025-x64
- platform: windows-2022
- platform: windows-2025
steps:
- name: Show env info
+2 -2
View File
@@ -207,7 +207,7 @@ jobs:
$PSNativeCommandUseErrorActionPreference = $false
$found = $false
for ($i = 1; $i -le 30; $i++) {
python -m pip install -f @indexArgs --dry-run "zvec==$version" 1>$null 2>$null
python -m pip install --force-reinstall @indexArgs --dry-run "zvec==$version" 1>$null 2>$null
if ($LASTEXITCODE -eq 0) {
Write-Host "Version $version is available."
$found = $true
@@ -225,5 +225,5 @@ jobs:
python -m venv test_env
$venvPython = "test_env/Scripts/python.exe"
& $venvPython -m pip install --upgrade pip
& $venvPython -m pip install @indexArgs "zvec==$version"
& $venvPython -m pip install --force-reinstall @indexArgs "zvec==$version"
& $venvPython -c "import zvec; print('Import OK:', zvec.__version__)"