File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -155,20 +155,18 @@ jobs:
155155 update : true
156156
157157 # Install pkgconfig on Windows from choco rather than from msys and
158- # avoid using the Strawberry one.
158+ # put its shim ahead of the Strawberry one on PATH .
159159 - if : ${{ startsWith( matrix.os , 'windows' ) }}
160- run : choco install -y --stoponfirstfailure --checksum 6004DF17818F5A6DBF19CB335CC92702 pkgconfiglite
160+ name : Install pkg-config
161+ run : |
162+ choco install -y --stoponfirstfailure --checksum 6004DF17818F5A6DBF19CB335CC92702 pkgconfiglite
163+ echo "$env:ChocolateyInstall/bin" >> $env:GITHUB_PATH
161164
162- # We have to set this here rather than in the cibuildwheel config
163- # This is probably something to do with \ vs / in paths...
164165 - if : ${{ startsWith( matrix.os , 'windows' ) }}
166+ name : Configure pkg-config
165167 run : |
166- $pkgConfig = "$env:ChocolateyInstall/bin/pkg-config.exe"
167- $pkgConfig = $pkgConfig.Replace('\', '/')
168- if (!(Test-Path $pkgConfig)) {
169- throw "pkg-config.exe not found at $pkgConfig"
170- }
171- echo "PKG_CONFIG=$pkgConfig" >> $env:GITHUB_ENV
168+ Get-Command pkg-config
169+ pkg-config --version
172170 $pkgConfigPath = "$env:GITHUB_WORKSPACE/.local/lib/pkgconfig"
173171 $pkgConfigPath = $pkgConfigPath.Replace('\', '/')
174172 echo "PKG_CONFIG_PATH=$pkgConfigPath" >> $env:GITHUB_ENV
You can’t perform that action at this time.
0 commit comments