summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorcyqsimon <28627918+cyqsimon@users.noreply.github.com>2023-08-30 10:54:45 +0800
committercyqsimon <28627918+cyqsimon@users.noreply.github.com>2023-08-30 11:09:29 +0800
commitdab58d18f747caa0081ea8dbb44e65a2bf7ad20a (patch)
treebad5c294f063b52b67e20a842a016d1ee2b9fc5f /.github
parent872c7a286ea343177340007a9abdd6edf8462afe (diff)
Fix stuck CI on Windows
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yaml7
1 files changed, 4 insertions, 3 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 0b5cc4b..a2d3748 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -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