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 1ba0904
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
30 changes: 20 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,30 @@ jobs:
uses: actions/checkout@v2

- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.x'
dotnet-version: |
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.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 +75,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 +86,7 @@ jobs:
cargo_doc:
name: Check cargo docs
runs-on: windows-latest
needs: test
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .metadata/generate.proj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.Windows.WinmdGenerator/0.56.13-preview">
<Project Sdk="Microsoft.Windows.WinmdGenerator/0.57.42-preview">
<PropertyGroup Label="Globals">
<OutputWinmd>../.windows/winmd/Microsoft.Dia.winmd</OutputWinmd>
<WinmdVersion>255.255.255.255</WinmdVersion>
Expand Down

0 comments on commit 1ba0904

Please sign in to comment.