@@ -47,12 +47,14 @@ jobs:
4747
4848 - name : Install cargo-c (Windows)
4949 if : runner.os == 'Windows'
50+ shell : pwsh
5051 env :
5152 LINK : https://github.com/lu-zero/cargo-c/releases/latest/download
5253 CARGO_C_FILE : cargo-c-windows-msvc.zip
5354 run : |
55+ $ErrorActionPreference = 'Stop'
5456 curl -L "$env:LINK/$env:CARGO_C_FILE" -o cargo-c-windows-msvc.zip
55- powershell -Command " Expand-Archive -Path cargo-c-windows-msvc.zip -DestinationPath $env:USERPROFILE\\.cargo\\bin -Force"
57+ Expand-Archive -Path cargo-c-windows-msvc.zip -DestinationPath $env:USERPROFILE\\.cargo\\bin -Force
5658
5759 - name : Setup cmake build
5860 run : |
@@ -103,12 +105,14 @@ jobs:
103105
104106 - name : Install cargo-c (Windows)
105107 if : runner.os == 'Windows'
108+ shell : pwsh
106109 env :
107110 LINK : https://github.com/lu-zero/cargo-c/releases/latest/download
108111 CARGO_C_FILE : cargo-c-windows-msvc.zip
109112 run : |
113+ $ErrorActionPreference = 'Stop'
110114 curl -L "$env:LINK/$env:CARGO_C_FILE" -o cargo-c-windows-msvc.zip
111- powershell -Command " Expand-Archive -Path cargo-c-windows-msvc.zip -DestinationPath $env:USERPROFILE\\.cargo\\bin -Force"
115+ Expand-Archive -Path cargo-c-windows-msvc.zip -DestinationPath $env:USERPROFILE\\.cargo\\bin -Force
112116
113117 - name : Setup cmake build
114118 run : |
@@ -164,12 +168,14 @@ jobs:
164168 unzip cargo-c-macos.zip -d ~/.cargo/bin
165169 - name : Install cargo-c (Windows)
166170 if : matrix.os == 'windows-latest'
171+ shell : pwsh
167172 env :
168173 LINK : https://github.com/lu-zero/cargo-c/releases/latest/download
169174 CARGO_C_FILE : cargo-c-windows-msvc.zip
170175 run : |
176+ $ErrorActionPreference = 'Stop'
171177 curl -L "$env:LINK/$env:CARGO_C_FILE" -o cargo-c-windows-msvc.zip
172- powershell -Command " Expand-Archive -Path cargo-c-windows-msvc.zip -DestinationPath $env:USERPROFILE\\.cargo\\bin -Force"
178+ Expand-Archive -Path cargo-c-windows-msvc.zip -DestinationPath $env:USERPROFILE\\.cargo\\bin -Force
173179 - name : Setup cmake build
174180 run : |
175181 cmake ${{
0 commit comments