Skip to content

Commit

Permalink
Fix stuck CI on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
cyqsimon committed Aug 30, 2023
1 parent 872c7a2 commit dab58d1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,11 @@ jobs:
if: matrix.os == 'windows-latest'
env:
NPCAP_OEM_URL: ${{ secrets.NPCAP_OEM_URL }}
shell: bash
run: |
curl -Lf "$NPCAP_OEM_URL" -o "$TEMP/npcap-oem.exe"
"$TEMP/npcap-oem.exe" /S
Invoke-WebRequest -Uri "$env:NPCAP_OEM_URL" -OutFile "$env:TEMP/npcap-oem.exe"
# for this ridiculous `&` syntax alone, I'd rather use COBOL than Powershell
# see https://stackoverflow.com/a/1674950/5637701
& "$env:TEMP/npcap-oem.exe" /S
- name: Run tests
run: cargo test --verbose
Expand Down

0 comments on commit dab58d1

Please sign in to comment.