Skip to content

Commit f49d7d7

Browse files
committed
ci: install rust on windows arm runners
1 parent 57c0d4f commit f49d7d7

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/release.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ jobs:
100100
os: windows-11-arm
101101
exe: ".exe"
102102
install: |
103+
iex "& { $(irm https://sh.rustup.rs) -y }"
104+
echo "$env:USERPROFILE\.cargo\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
105+
103106
echo "VCPKG_ROOT=$env:VCPKG_INSTALLATION_ROOT" | Out-File -FilePath $env:GITHUB_ENV -Append
104107
vcpkg install openssl:arm64-windows-static-md
105108
@@ -132,17 +135,17 @@ jobs:
132135
target/
133136
key: ${{ matrix.target }}-cargo-release-${{ hashFiles('**/Cargo.toml') }}
134137

138+
- name: Install dependencies
139+
if: matrix.install != ''
140+
run: ${{ matrix.install }}
141+
135142
- name: Disable rustup auto update
136143
run: |
137144
rustup set auto-self-update disable
138145
139146
- run: rustup target add ${{ matrix.target }}
140147
if: matrix.target != ''
141148

142-
- name: Install dependencies
143-
if: matrix.install != ''
144-
run: ${{ matrix.install }}
145-
146149
- name: Prepare cross
147150
if: matrix.cross == 'true'
148151
run: |

0 commit comments

Comments
 (0)