mirror of
https://github.com/3proxy/3proxy.git
synced 2026-10-17 08:55:49 +08:00
44 lines
1.5 KiB
YAML
44 lines
1.5 KiB
YAML
# Temporary: compares close behaviour of this branch with its base on Windows.
|
|
name: Windows close test (temporary)
|
|
|
|
on:
|
|
push:
|
|
branches: [ 'test/windows-close' ]
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
close:
|
|
runs-on: windows-2022
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
with:
|
|
fetch-depth: 0
|
|
- name: install Windows libraries
|
|
run: vcpkg install pcre2:x64-windows wolfssl:x64-windows-static
|
|
- name: Add msbuild to PATH
|
|
uses: microsoft/setup-msbuild@v3
|
|
- name: build the change and its base (MSVC)
|
|
shell: cmd
|
|
run: |
|
|
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
|
|
cd /d "%GITHUB_WORKSPACE%"
|
|
set "LIB=%LIB%;c:/vcpkg/installed/x64-windows-static/lib;c:/vcpkg/installed/x64-windows/lib"
|
|
set "INCLUDE=%INCLUDE%;c:/vcpkg/installed/x64-windows-static/include;c:/vcpkg/installed/x64-windows/include"
|
|
nmake /F Makefile.msvc WOLFSSL=1 || exit /b 1
|
|
git worktree add basesrc HEAD~2 || exit /b 1
|
|
cd basesrc
|
|
nmake /F Makefile.msvc WOLFSSL=1 || exit /b 1
|
|
- name: socket close semantics (no proxy)
|
|
run: python .github/wintest/rsttest.py
|
|
- name: close behaviour, base
|
|
run: |
|
|
$env:PATH = "c:\vcpkg\installed\x64-windows\bin;$env:PATH"
|
|
python .github/wintest/close_test.py basesrc\bin\3proxy.exe base
|
|
- name: close behaviour, change
|
|
run: |
|
|
$env:PATH = "c:\vcpkg\installed\x64-windows\bin;$env:PATH"
|
|
python .github/wintest/close_test.py bin\3proxy.exe change
|