|
26 | 26 | # # Windows |
27 | 27 | # - os: windows-latest |
28 | 28 | # target: x86_64-pc-windows-msvc |
29 | | - - os: Windows-ARM |
| 29 | + - os: windows-latest |
30 | 30 | target: arm64-pc-windows-msvc/* ./npm/win32-arm64-msvc/ |
31 | | - install-windows-arm: true |
32 | 31 | # # macOS |
33 | 32 | # - os: macos-latest |
34 | 33 | # target: x86_64-apple-darwin |
@@ -120,56 +119,6 @@ jobs: |
120 | 119 | run: | |
121 | 120 | rustup default stable |
122 | 121 |
|
123 | | - - name: Install Visual Studio (Windows) |
124 | | - if: ${{ matrix.install-windows-arm }} |
125 | | - run: | |
126 | | - $components = @( |
127 | | - "Microsoft.VisualStudio.Component.CoreEditor", |
128 | | - "Microsoft.VisualStudio.Workload.CoreEditor", |
129 | | - "Microsoft.VisualStudio.Component.Roslyn.Compiler", |
130 | | - "Microsoft.Component.MSBuild", |
131 | | - "Microsoft.VisualStudio.Component.TextTemplating", |
132 | | - "Microsoft.VisualStudio.Component.Debugger.JustInTime", |
133 | | - "Microsoft.VisualStudio.Component.VC.CoreIde", |
134 | | - "Microsoft.VisualStudio.Component.VC.Tools.x86.x64", |
135 | | - "Microsoft.VisualStudio.Component.Windows11SDK.22621", |
136 | | - "Microsoft.VisualStudio.Component.VC.Tools.ARM64EC", |
137 | | - "Microsoft.VisualStudio.Component.VC.Tools.ARM64", |
138 | | - "Microsoft.VisualStudio.Component.VC.ATL", |
139 | | - "Microsoft.VisualStudio.Component.VC.ATL.ARM64", |
140 | | - "Microsoft.VisualStudio.Component.Graphics", |
141 | | - "Microsoft.VisualStudio.Component.VC.Redist.14.Latest", |
142 | | - "Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core", |
143 | | - "Microsoft.VisualStudio.Component.Windows11Sdk.WindowsPerformanceToolkit", |
144 | | - "Microsoft.VisualStudio.Component.CppBuildInsights", |
145 | | - "Microsoft.VisualStudio.Component.VC.DiagnosticTools", |
146 | | - "Microsoft.VisualStudio.ComponentGroup.WebToolsExtensions.CMake", |
147 | | - "Microsoft.VisualStudio.Component.VC.CMake.Project", |
148 | | - "Microsoft.VisualStudio.Component.VC.ASAN", |
149 | | - "Microsoft.VisualStudio.Component.Vcpkg", |
150 | | - "Microsoft.VisualStudio.Workload.NativeDesktop" |
151 | | - ) |
152 | | - $config = @{ |
153 | | - "version" = "1.0" |
154 | | - "components" = $components |
155 | | - "extensions" = @() |
156 | | - } |
157 | | - $configPath = "${env:RUNNER_TEMP}\vsconfig" |
158 | | - $config | ConvertTo-Json | Out-File -FilePath $configPath |
159 | | - $bootstrapperFilePath = "${env:RUNNER_TEMP}\vs_community.exe" |
160 | | - write-host "Downloading Visual Studio 2022" |
161 | | - Invoke-WebRequest -Uri "https://aka.ms/vs/17/release/vs_community.exe" -outfile $bootstrapperFilePath |
162 | | - $bootstrapperArgumentList = ('/c', $bootstrapperFilePath, '--config', $configPath, '--quiet', '--wait' ) |
163 | | - write-host "Installing Visual Studio 2022" |
164 | | - $process = Start-Process -FilePath cmd.exe -ArgumentList $bootstrapperArgumentList -Wait -PassThru |
165 | | - $exitCode = $process.ExitCode |
166 | | - write-host $exitCode |
167 | | -
|
168 | | - - name: Install Rust (Windows ARM, Stable) |
169 | | - if: ${{ matrix.install-windows-arm }} |
170 | | - run: | |
171 | | - & ([scriptblock]::Create((New-Object System.Net.WebClient).DownloadString('https://gist.github.com/fnichol/699d3c2930649a9932f71bab8a315b31/raw/rustup-init.ps1'))) -y |
172 | | -
|
173 | 122 | - name: Setup rust target |
174 | 123 | run: rustup target add ${{ matrix.target }} |
175 | 124 |
|
|
0 commit comments