Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/ci-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading