Skip to content

Commit

Permalink
ci: preparing Windows MSVC environment
Browse files Browse the repository at this point in the history
  • Loading branch information
georgik committed Nov 15, 2023
1 parent 0a2b4bc commit ff3f9be
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-x86_64-pc-windows-msvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-x86_64-self-hosted]
os: [x86_64-pc-windows-msvc-self-hosted]
include:
- os: windows-x86_64-self-hosted
- os: x86_64-pc-windows-msvc-self-hosted
ASSET_PATH: "rust/build/dist/rust-nightly-x86_64-pc-windows-msvc.zip"
ASSET_NAME: "rust-${{ github.event.inputs.release_version }}-x86_64-pc-windows-msvc.zip"
ASSET_CONTENT_TYPE: "application/x-tar"
Expand Down
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"

0 comments on commit ff3f9be

Please sign in to comment.