From 5662aa16d6435a72b7dfd14ccc74592ac8b34e57 Mon Sep 17 00:00:00 2001 From: Kevin Yue Date: Mon, 30 Nov 2026 23:23:41 +0800 Subject: [PATCH] ci: verify adapter DNS on a native Windows runner --- .../workflows/windows-adapter-dns-check.yaml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/windows-adapter-dns-check.yaml diff --git a/.github/workflows/windows-adapter-dns-check.yaml b/.github/workflows/windows-adapter-dns-check.yaml new file mode 100644 index 0000000..57929ce --- /dev/null +++ b/.github/workflows/windows-adapter-dns-check.yaml @@ -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/rust-toolchain@1.97.0 + - 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