mirror of
https://github.com/3proxy/3proxy.git
synced 2026-04-07 05:40:12 +08:00
Create build-win.yml
This commit is contained in:
parent
7092ecae71
commit
e4bced1402
43
.github/workflows/build-win.yml
vendored
Normal file
43
.github/workflows/build-win.yml
vendored
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
name: C/C++ CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ "test-ci" ]
|
||||||
|
paths: [ 'RELEASE', '.github/workflows/build-win.yml' ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
ci:
|
||||||
|
name: "${{ matrix.target }}"
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
target:
|
||||||
|
- windows-2022
|
||||||
|
runs-on: ${{ matrix.target }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
# - name: configure
|
||||||
|
# run: ./configure
|
||||||
|
- name: install packages
|
||||||
|
run: vcpkg install pcre2:x64-windows && c:\msys64\usr\bin\pacman.exe -S --noconfirm mingw-w64-x86_64-pcre2 mingw-w64-x86_64-openssl
|
||||||
|
# - name: make Windows
|
||||||
|
# run: make -f Makefile.win
|
||||||
|
# env:
|
||||||
|
# LDFLAGS: '-L "c:/msys64/mingw64/lib"'
|
||||||
|
# CFLAGS: '-I "c:/msys64/mingw64/include"'
|
||||||
|
# - name: make clean Windows
|
||||||
|
# if: ${{ startsWith(matrix.target, 'windows') }}
|
||||||
|
# run: make -f Makefile.win clean
|
||||||
|
- 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"
|
||||||
|
mkdir bin64
|
||||||
|
set "LIB=%LIB%;c:/program files/openssl/lib/VC/x64/MT;c:/vcpkg/installed/x64-windows/lib"
|
||||||
|
set "INCLUDE=%INCLUDE%;c:/program files/openssl/include;c:/vcpkg/installed/x64-windows/include"
|
||||||
|
nmake /F Makefile.msvc64
|
||||||
|
nmake /F Makefile.msvc64 clean
|
||||||
Loading…
Reference in New Issue
Block a user