File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9696
9797 - name : Install WDK (${{ matrix.wdk }})
9898 run : |
99- if (!(winget list --exact --source winget --id ${{ matrix.wdk }})[-1].contains("${{ matrix.wdk }}")) {
100- winget install --disable-interactivity --source winget --exact --id ${{ matrix.wdk }}
99+ if ((Get-WinGetPackage -Id ${{ matrix.wdk }} -Source winget -MatchOption Equals).Id -eq '${{ matrix.wdk }}') {
100+ Write-Host "${{ matrix.wdk }} is already installed. Attempting to update..."
101+ Update-WinGetPackage -Id ${{ matrix.wdk }} -Source winget -MatchOption Equals -Mode Silent -Force
102+ } else {
103+ Write-Host "Installing ${{ matrix.wdk }}..."
104+ Install-WinGetPackage -Id ${{ matrix.wdk }} -Source winget -MatchOption Equals -Mode Silent -Force
101105 }
102106
103107 - name : Install Rust Toolchain (Nightly)
You can’t perform that action at this time.
0 commit comments