Skip to content

Commit fd9cb60

Browse files
Install rust on Windows machine?
1 parent f1c89f8 commit fd9cb60

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
# target: x86_64-pc-windows-msvc
2929
- os: Windows-ARM
3030
target: arm64-pc-windows-msvc/* ./npm/win32-arm64-msvc/
31+
install-windows-arm: true
3132
# # macOS
3233
# - os: macos-latest
3334
# target: x86_64-apple-darwin
@@ -119,6 +120,16 @@ jobs:
119120
run: |
120121
rustup default stable
121122
123+
- name: Install Visual Studio (Windows)
124+
if: ${{ matrix.install-windows-arm }}
125+
uses: microsoft/setup-msbuild@v2
126+
127+
- name: Install Rust (Windows ARM, Stable)
128+
if: ${{ matrix.install-windows-arm }}
129+
run: |
130+
winget install --id Microsoft.VisualStudio.2022.Community
131+
& ([scriptblock]::Create((New-Object System.Net.WebClient).DownloadString('https://gist.github.com/fnichol/699d3c2930649a9932f71bab8a315b31/raw/rustup-init.ps1')))
132+
122133
- name: Setup rust target
123134
run: rustup target add ${{ matrix.target }}
124135

0 commit comments

Comments
 (0)