-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: preparing Windows MSVC environment
- Loading branch information
Showing
2 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
support/rust-build/x86_64-pc-windows-msvc/Prepare-BuildEnvironment.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Requires elevation of privileges | ||
|
||
winget install --id Git.Git --accept-source-agreements | ||
winget install --id 7zip.7zip | ||
winget install --id Python.Python.3.12 --scope machine | ||
|
||
$ProgressPreference = 'SilentlyContinue' | ||
wget https://aka.ms/vs/17/release/vs_buildtools.exe -OutFile vs_buildtools.exe | ||
.\vs_buildtools.exe --passive --wait --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.VisualStudio.Component.Windows11SDK.22621 | ||
|
||
# winget installation failed with an error, using vs_buildtools.exe instead | ||
#winget install -e --id Microsoft.WindowsSDK | ||
#winget install Microsoft.VisualStudio.2022.BuildTools --silent --override "--wait --quiet --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64" | ||
|
||
setx /M PATH "$env:PATH;C:\Program Files\7-Zip" |