Skip to content

Commit

Permalink
vs_installer
Browse files Browse the repository at this point in the history
  • Loading branch information
riverar committed Jan 19, 2024
1 parent ba362b5 commit c69646f
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,30 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.x'
dotnet-version: |
7.0.0
8.x
- name: Setup Visual Studio
run: |
$vsInstallationPath = & "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -property installationPath
& "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vs_installer.exe" modify --installPath "$vsInstallationPath" --add `
Microsoft.NetCore.Component.Runtime.8.0 `
Microsoft.NetCore.Component.SDK `
Microsoft.VisualStudio.Component.VC.Tools.ARM64 `
Microsoft.VisualStudio.Component.VC.Tools.x86.x64 `
Microsoft.VisualStudio.Component.Windows11SDK.22000
Start-Process -Wait "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vs_installer.exe" -ArgumentList {`
modify `
--quiet `
--installPath "C:\Program Files\Microsoft Visual Studio\2022\Enterprise" `
--add `
Microsoft.NetCore.Component.Runtime.6.0 `
Microsoft.NetCore.Component.Runtime.8.0 `
Microsoft.NetCore.Component.SDK `
Microsoft.VisualStudio.Component.VC.Tools.ARM64 `
Microsoft.VisualStudio.Component.VC.Tools.x86.x64 `
Microsoft.VisualStudio.Component.Windows11SDK.22000 `
}
- name: Build metadata
run: dotnet build .metadata
shell: cmd
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
dotnet build .metadata
- name: Update toolchain
run: rustup update --no-self-update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
Expand All @@ -67,6 +77,7 @@ jobs:
cargo_clippy:
name: Check cargo clippy
runs-on: windows-latest
needs: test
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -77,6 +88,7 @@ jobs:
cargo_doc:
name: Check cargo docs
runs-on: windows-latest
needs: test
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down

0 comments on commit c69646f

Please sign in to comment.