Skip to content

Commit eada98f

Browse files
committed
ci: fix in windows environment
1 parent e0ad1a4 commit eada98f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/CI.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,12 @@ jobs:
112112
- name: Install Rust (Windows)
113113
if: ${{ contains(matrix.settings.host, 'windows') }}
114114
run: |
115-
curl -o rustup-init.exe https://win.rustup.rs/x86_64
115+
# Detect Windows architecture
116+
if "%PROCESSOR_ARCHITECTURE%"=="AMD64" (
117+
curl -o rustup-init.exe https://win.rustup.rs/x86_64
118+
) else (
119+
curl -o rustup-init.exe https://win.rustup.rs/i686
120+
)
116121
.\rustup-init.exe -y --default-toolchain stable --default-host ${{ matrix.settings.target }}
117122
echo "%USERPROFILE%\.cargo\bin" >> $env:GITHUB_PATH
118123
"%USERPROFILE%\.cargo\bin\rustup.exe" component add rustfmt clippy

0 commit comments

Comments
 (0)