Skip to content

Commit dab58d1

Browse files
committed
Fix stuck CI on Windows
1 parent 872c7a2 commit dab58d1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/ci.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,11 @@ jobs:
5555
if: matrix.os == 'windows-latest'
5656
env:
5757
NPCAP_OEM_URL: ${{ secrets.NPCAP_OEM_URL }}
58-
shell: bash
5958
run: |
60-
curl -Lf "$NPCAP_OEM_URL" -o "$TEMP/npcap-oem.exe"
61-
"$TEMP/npcap-oem.exe" /S
59+
Invoke-WebRequest -Uri "$env:NPCAP_OEM_URL" -OutFile "$env:TEMP/npcap-oem.exe"
60+
# for this ridiculous `&` syntax alone, I'd rather use COBOL than Powershell
61+
# see https://stackoverflow.com/a/1674950/5637701
62+
& "$env:TEMP/npcap-oem.exe" /S
6263
6364
- name: Run tests
6465
run: cargo test --verbose

0 commit comments

Comments
 (0)