Skip to content

Commit e711793

Browse files
committed
update ci envrioment to windows-2025
1 parent 291fadd commit e711793

2 files changed

Lines changed: 19 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ permissions:
88

99
jobs:
1010
build_winexe_winmemdll:
11-
runs-on: windows-2019
11+
runs-on: windows-2025
1212
steps:
1313
- name: pull and init
1414
uses: actions/checkout@v3
@@ -17,6 +17,23 @@ jobs:
1717
- name: add msbuild to path
1818
uses: microsoft/setup-msbuild@v1.1
1919

20+
- name: prepare enviroment
21+
run: |
22+
Set-Location "C:\Program Files (x86)\Microsoft Visual Studio\Installer\"
23+
$InstallPath = "C:\Program Files\Microsoft Visual Studio\2022\Enterprise"
24+
$WorkLoads = '--add Microsoft.VisualStudio.Component.WinXP'
25+
$Arguments = ('/c', "vs_installer.exe", 'modify', '--installPath', "`"$InstallPath`"", $WorkLoads, '--quiet', '--norestart', '--nocache')
26+
$process = Start-Process -FilePath cmd.exe -ArgumentList $Arguments -Wait -PassThru -WindowStyle Hidden
27+
if ($process.ExitCode -eq 0)
28+
{
29+
Write-Host "components have been successfully added"
30+
}
31+
else
32+
{
33+
Write-Host "components were not installed"
34+
exit 1
35+
}
36+
2037
- name: build target
2138
run: script/build_winmemdll.bat
2239

0 commit comments

Comments
 (0)