File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -607,9 +607,20 @@ jobs:
607607 # NASM is required by aws-lc-rs (used as rustls crypto backend)
608608 choco install nasm
609609
610+ # Install Visual Studio Developer PowerShell Module for cmdlets such as Enter-VsDevShell
611+ Install-Module VsDevShell -Force
612+
610613 # We need to add the NASM binary folder to the PATH manually.
611614 Write-Output "$Env:ProgramFiles\NASM" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
612615
616+ - name : Find mc.exe
617+ id : find_mc
618+ if : matrix.os == 'windows'
619+ run : |
620+ Enter-VsDevShell
621+ $path = (Get-Command -Type Application mc).Source | Split-Path -Parent
622+ Write-Output "windows_sdk_ver_bin_path=$path" | Out-File -FilePath $env:GITHUB_OUTPUT -Append -Encoding utf8
623+
613624 - name : Build
614625 shell : pwsh
615626 env :
@@ -625,6 +636,11 @@ jobs:
625636 . "$HOME/.cargo/cbake/${RustTarget}-enter.ps1"
626637 $Env:AWS_LC_SYS_CMAKE_BUILDER="true"
627638 }
639+
640+ if ($Env:RUNNER_OS -eq "Windows") {
641+ $Env:WindowsSdkVerBinPath = '${{ steps.find_mc.outputs.windows_sdk_ver_bin_path }}'
642+ }
643+
628644 ./ci/tlk.ps1 build -Product gateway -Platform ${{ matrix.os }} -Architecture ${{ matrix.arch }} -CargoProfile ${{ needs.preflight.outputs.rust-profile }}
629645
630646 - name : Add msbuild to PATH
You can’t perform that action at this time.
0 commit comments