Remove misleading static_assert #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Win64 3proxy with MSVC | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| paths: [ 'RELEASE', '.github/workflows/build-win64.yml' ] | |
| jobs: | |
| ci: | |
| name: "${{ matrix.target }}" | |
| strategy: | |
| matrix: | |
| target: | |
| - windows-2022 | |
| runs-on: ${{ matrix.target }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| # - name: configure | |
| # run: ./configure | |
| - name: set date | |
| run: | | |
| $NOW = Get-Date -Format "yyMMddHHmmss" | |
| $RELEASE = Get-Content -Path "RELEASE" -Raw | |
| echo "NOW=$NOW" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | |
| echo "RELEASE=$RELEASE" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | |
| echo "VERSION=/D `"VERSION=\`"3proxy-$RELEASE\`"`"" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | |
| echo "BUILDDATE=/D `"BUILDDATE=\`"$NOW\`"`"" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | |
| - name: install packages | |
| run: vcpkg install pcre2:x64-windows-static openssl:x64-windows-static | |
| - name: Add msbuild to PATH | |
| uses: microsoft/setup-msbuild@v3 | |
| - name: make Windows MSVC | |
| if: ${{ startsWith(matrix.target, 'windows') }} | |
| shell: cmd | |
| run: | | |
| call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" | |
| D: | |
| cd "D:/a/3proxy/3proxy" | |
| set "LIB=%LIB%;c:/vcpkg/installed/x64-windows-static/lib" | |
| set "INCLUDE=%INCLUDE%;c:/vcpkg/installed/x64-windows-static/include" | |
| echo "volatile char VerSion[]=^"3APA3A-3proxy-Internal-Build: 3proxy-%RELEASE%-%NOW%\r\nCode certificate: https://3proxy.org/3proxy.cer\r\n^";" >>src/3proxy.c | |
| echo %NOW% / %RELEASE% / %BUILDDATE% / %VERSION% | |
| nmake /F Makefile.msvc | |
| - name: make dist dir | |
| shell: cmd | |
| run: | | |
| mkdir dist | |
| mkdir dist\3proxy | |
| mkdir dist\3proxy\bin64 | |
| mkdir dist\3proxy\cfg | |
| mkdir dist\3proxy\cfg\sql | |
| mkdir dist\3proxy\doc | |
| mkdir dist\3proxy\doc\ru | |
| mkdir dist\3proxy\doc\html | |
| mkdir dist\3proxy\doc\html\plugins | |
| mkdir dist\3proxy\doc\html\man3 | |
| mkdir dist\3proxy\doc\html\man8 | |
| mkdir dist\3proxy\doc\devel | |
| copy bin\3proxy.exe dist\3proxy\bin64\ | |
| copy bin\*.dll dist\3proxy\bin64\ | |
| copy bin\mycrypt.exe dist\3proxy\bin64\ | |
| copy cfg\*.* dist\3proxy\cfg\ | |
| copy cfg\sql\*.* dist\3proxy\cfg\sql\ | |
| copy doc\ru\*.* dist\3proxy\doc\ru\ | |
| copy doc\html\*.* dist\3proxy\doc\html\ | |
| copy doc\html\plugins\*.* dist\3proxy\doc\html\plugins\ | |
| copy doc\html\man8\*.* dist\3proxy\doc\html\man8\ | |
| copy doc\html\man3\*.* dist\3proxy\doc\html\man3\ | |
| copy doc\devel\*.rtf dist\3proxy\doc\devel\ | |
| copy copying dist\3proxy\ | |
| copy authors dist\3proxy\ | |
| copy README dist\3proxy\ | |
| copy rus.3ps dist\3proxy\ | |
| - name: Get artifact | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: "3proxy-${{ env.RELEASE }}-x64" | |
| path: dist/ |