Skip to content

Commit 55e88c2

Browse files
committed
Fixing CI for Windows?
1 parent db44d1f commit 55e88c2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/rust-test.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,15 @@ jobs:
8383
- uses: actions/checkout@v4
8484

8585
- name: Install Rust (for local testing)
86+
if: matrix.os == 'windows-latest'
87+
run: |
88+
curl -sSf -o rustup-init.exe https://win.rustup.rs
89+
./rustup-init.exe -y --default-toolchain stable --profile minimal
90+
echo "$HOME\.cargo\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
91+
$env:Path += ";$HOME\.cargo\bin"
92+
93+
- name: Install Rust (for local testing)
94+
if: matrix.os != 'windows-latest'
8695
run: |
8796
curl https://sh.rustup.rs -sSf | sh -s -- -y
8897
echo "$HOME/.cargo/bin" >> $GITHUB_PATH

0 commit comments

Comments
 (0)