fix: misc fix for Windows(BUILD_SHARED_LIBS, CI) (#296)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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__)"
|
||||
|
||||
Reference in New Issue
Block a user