Skip to content

Commit e8461d8

Browse files
committed
Install DNF 4.8.1 packs
Recently upgraded project targeting to 4.8.1, and found out that the Windows runner isn't installed with it yet. This is a temporary workaround until the runner image is updated (actions/runner-images#8766)
1 parent 3d11cfd commit e8461d8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/actions/build-solution/action.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ runs:
1717
run: echo "SHORT_SHA=$("${{ github.sha }}".SubString(0, 8))" >> $env:GITHUB_ENV
1818
- name: Setup MSBuild
1919
uses: microsoft/setup-msbuild@v1
20+
- name: Install DNF 4.8.1 packs
21+
shell: pwsh
22+
working-directory: "C:\\Program Files (x86)\\Microsoft Visual Studio\\Installer"
23+
run: |
24+
$InstallPath = "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise"
25+
$WorkLoads = '--add Microsoft.Net.Component.4.8.1.SDK --add Microsoft.Net.Component.4.8.1.TargetingPack -add Microsoft.Net.ComponentGroup.4.8.1.DeveloperTools'
26+
$Arguments = ('/c', "vs_installer.exe", 'modify', '--installPath', "`"$InstallPath`"", $WorkLoads, '--quiet', '--norestart', '--nocache')
27+
$process = Start-Process -FilePath cmd.exe -ArgumentList $Arguments -Wait -PassThru -WindowStyle Hidden
2028
- name: Restore Packages
2129
working-directory: WinNUT_V2
2230
shell: pwsh

0 commit comments

Comments
 (0)