diff --git a/.github/workflows/ci-windows.yml b/.github/workflows/ci-windows.yml index 18c38b4..203eb75 100644 --- a/.github/workflows/ci-windows.yml +++ b/.github/workflows/ci-windows.yml @@ -124,9 +124,33 @@ jobs: cd .\boost_${{matrix.boost-version_}}\ .\bootstrap.bat ${{matrix.toolset}} .\b2.exe install --variant=release --threading=multi --link=static ${{matrix.boost-modules}} + New-Item -ItemType Directory -Path C:\Boost\include\boost_${{matrix.boost-version_}} -Force | Out-Null + Copy-Item -Path .\boost -Destination C:\Boost\include\boost_${{matrix.boost-version_}} -Recurse -Force cd .. #rm -rv boost* + - name: configure boost environment for meson + shell: pwsh + run: | + $boostRoot = 'C:\Boost' + if (-not (Test-Path $boostRoot)) { + throw "Boost root directory '$boostRoot' does not exist." + } + + $boostIncludeDir = Get-ChildItem -Path (Join-Path $boostRoot 'include') -Directory -Filter 'boost-*' | Select-Object -First 1 + if ($null -eq $boostIncludeDir) { + throw "No versioned Boost include directory found in '$boostRoot\\include'." + } + + $boostLibraryDir = Join-Path $boostRoot 'lib' + if (-not (Test-Path $boostLibraryDir)) { + throw "Boost library directory '$boostLibraryDir' does not exist." + } + + "BOOST_ROOT=$boostRoot" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append + "BOOST_INCLUDEDIR=$($boostIncludeDir.FullName)" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append + "BOOST_LIBRARYDIR=$boostLibraryDir" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append + - name: install dependencies (meson & python) run: pip install meson meson-python pytest numpy #run: pip install meson meson-python pytest numpy ninja