ci: verify adapter DNS on a native Windows runner

This commit is contained in:
Kevin Yue committed 2026-11-30 23:23:41 +08:00
1 parent d24800db4b
commit 5662aa16d6
1 file changed
+22
@@ -0,0 +1,22 @@
name: Windows adapter DNS check
on:
push:
branches: [ci/windows-adapter-dns-native]
permissions:
contents: read
jobs:
network:
runs-on: windows-2022
timeout-minutes: 15
steps:
- uses: actions/checkout@v6
- uses: dtolnay/[email protected]
- name: Test native Wintun adapter configuration
shell: pwsh
run: |
$zip = Join-Path $env:RUNNER_TEMP 'wintun.zip'
Invoke-WebRequest 'https://www.wintun.net/builds/wintun-0.14.1.zip' -OutFile $zip
if ((Get-FileHash $zip).Hash -ne '07C256185D6EE3652E09FA55C0B673E2624B565E02C4B9091C79CA7D2F24EF51') { throw 'Wintun checksum mismatch' }
Expand-Archive $zip $env:RUNNER_TEMP
$env:GP_TEST_WINTUN_DLL = Join-Path $env:RUNNER_TEMP 'wintun/bin/amd64/wintun.dll'
cargo +1.97.0 test --locked -p gpvpnc --test windows_network -- --ignored --nocapture