Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
jdpurcell committed Dec 9, 2024
1 parent 40108f0 commit ecdbd41
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ jobs:
strategy:
matrix:
include:
- runner: 'ubuntu-20.04'
qtVersion: '5.15.2'
buildArch: 'X64'
- runner: 'macos-14'
qtVersion: '6.8.1'
qtModules: 'qtimageformats'
buildArch: 'Universal'
- runner: 'macos-13'
qtVersion: '5.15.2'
osSuffix: '_legacy'
buildArch: 'X64'
# - runner: 'ubuntu-20.04'
# qtVersion: '5.15.2'
# buildArch: 'X64'
# - runner: 'macos-14'
# qtVersion: '6.8.1'
# qtModules: 'qtimageformats'
# buildArch: 'Universal'
# - runner: 'macos-13'
# qtVersion: '5.15.2'
# osSuffix: '_legacy'
# buildArch: 'X64'
- runner: 'windows-2022'
qtVersion: '6.8.1'
qtArch: 'win64_msvc2022_64'
Expand Down
12 changes: 6 additions & 6 deletions dist/scripts/vcvars.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ if (-not $arch) {
throw 'Unsupported build architecture.'
}

$path = Resolve-Path "${env:ProgramFiles}\Microsoft Visual Studio\*\*\VC\Auxiliary\Build" | Select-Object -ExpandProperty Path

cmd.exe /c "call `"$path\vcvarsall.bat`" $arch && set > %temp%\vcvars.txt"
$vsPath = & vswhere -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath

$exclusions = @('VCPKG_ROOT')
Get-Content "$env:temp\vcvars.txt" | Foreach-Object {
if ($_ -match "^(.*?)=(.*)$" -and $matches[1] -notin $exclusions) {
[Environment]::SetEnvironmentVariable($matches[1], $matches[2])

& cmd /c "`"$(Join-Path $vsPath 'VC\Auxiliary\Build\vcvarsall.bat')`" $vcBuildArch > null && set" | ForEach-Object {
$name, $value = $_ -Split '=', 2
if ($name -notin $exclusions) {
[Environment]::SetEnvironmentVariable($name, $value)
}
}

0 comments on commit ecdbd41

Please sign in to comment.