From a8d0ddbf46312047281b3ce0e953e196facac992 Mon Sep 17 00:00:00 2001 From: Rafael Rivera Date: Fri, 24 May 2024 16:22:06 -0700 Subject: [PATCH] program files --- .github/actions/fix-environment/action.yml | 10 +++++----- .github/workflows/lib.yml | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/actions/fix-environment/action.yml b/.github/actions/fix-environment/action.yml index b419985903..87e2d5464d 100644 --- a/.github/actions/fix-environment/action.yml +++ b/.github/actions/fix-environment/action.yml @@ -18,7 +18,7 @@ runs: - name: Configure environment shell: pwsh run: | - $vs_root = & 'C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe' ` + $vs_root = & "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" ` -latest -property installationPath -format value switch -Wildcard ("${{ matrix.target }}") @@ -29,19 +29,19 @@ runs: } "i686*" { - "C:\Program Files (x86)\Windows Kits\10\bin\10.0.22000.0\x86" >> $env:GITHUB_PATH + "${env:ProgramFiles(x86)}\Windows Kits\10\bin\10.0.22000.0\x86" >> $env:GITHUB_PATH ((Resolve-Path "$vs_root\VC\Tools\MSVC\*\bin\Hostx86\x86") | Sort-Object -Descending | Select -First 1).ToString() >> $env:GITHUB_PATH } "x86_64*" { - "C:\Program Files (x86)\Windows Kits\10\bin\10.0.22000.0\x64" >> $env:GITHUB_PATH + "${env:ProgramFiles(x86)}\Windows Kits\10\bin\10.0.22000.0\x64" >> $env:GITHUB_PATH ((Resolve-Path "$vs_root\VC\Tools\MSVC\*\bin\Hostx64\x64") | Sort-Object -Descending | Select -First 1).ToString() >> $env:GITHUB_PATH } "aarch64*" { - "C:\Program Files (x86)\Windows Kits\10\bin\10.0.22000.0\x64" >> $env:GITHUB_PATH + "${env:ProgramFiles(x86)}\Windows Kits\10\bin\10.0.22000.0\x64" >> $env:GITHUB_PATH ((Resolve-Path "$vs_root\VC\Tools\MSVC\*\bin\Hostx64\x64") | Sort-Object -Descending | Select -First 1).ToString() >> $env:GITHUB_PATH } @@ -49,7 +49,7 @@ runs: { (Join-Path $env:GITHUB_WORKSPACE "target\debug\deps").ToString() >> $env:GITHUB_PATH (Join-Path $env:GITHUB_WORKSPACE "target\test\debug\deps").ToString() >> $env:GITHUB_PATH - "INCLUDE=C:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\winrt;C:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\cppwinrt" ` + "INCLUDE=${env:ProgramFiles(x86)}\Windows Kits\10\include\10.0.22000.0\winrt;${env:ProgramFiles(x86)}\Windows Kits\10\include\10.0.22000.0\cppwinrt" ` >> $env:GITHUB_ENV } } diff --git a/.github/workflows/lib.yml b/.github/workflows/lib.yml index 7759841e58..15367212c9 100644 --- a/.github/workflows/lib.yml +++ b/.github/workflows/lib.yml @@ -31,7 +31,7 @@ jobs: id: visual-studio shell: pwsh run: | - $path = & 'C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe' ` + $path = & "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" ` -latest -property installationPath -format value "install_path=$path" | Out-File -FilePath $env:GITHUB_OUTPUT -Append