mirror of
https://github.com/3proxy/3proxy.git
synced 2026-04-07 05:40:12 +08:00
Update c-cpp.yml
This commit is contained in:
parent
584f75278b
commit
81f573ddec
45
.github/workflows/c-cpp.yml
vendored
45
.github/workflows/c-cpp.yml
vendored
@ -26,36 +26,45 @@ jobs:
|
|||||||
- name: Linux libraries
|
- name: Linux libraries
|
||||||
if: ${{ startsWith(matrix.target, 'ubuntu') }}
|
if: ${{ startsWith(matrix.target, 'ubuntu') }}
|
||||||
run: sudo apt install libssl-dev libpam-dev libpcre3 libpcre3-dev
|
run: sudo apt install libssl-dev libpam-dev libpcre3 libpcre3-dev
|
||||||
- name: Mac libraries
|
|
||||||
if: ${{ startsWith(matrix.target, 'macos') }}
|
|
||||||
run: brew install pcre
|
|
||||||
- name: make Windows
|
|
||||||
if: ${{ startsWith(matrix.target, 'windows') }}
|
|
||||||
run: make -f Makefile.win
|
|
||||||
env:
|
|
||||||
LIBS: '-L "c:/program files/openssl/lib/VC/x64/MT"'
|
|
||||||
CFLAGS: '-I "c:/program files/openssl/include"'
|
|
||||||
- name: make Ubuntu
|
- name: make Ubuntu
|
||||||
if: ${{ startsWith(matrix.target, 'ubuntu') }}
|
if: ${{ startsWith(matrix.target, 'ubuntu') }}
|
||||||
run: make -f Makefile.Linux
|
run: make -f Makefile.Linux
|
||||||
- name: make MacOS
|
|
||||||
if: ${{ startsWith(matrix.target, 'macos') }}
|
|
||||||
run: make -f Makefile.FreeBSD
|
|
||||||
env:
|
|
||||||
LDFLAGS: "-L/usr/local/lib -L/opt/homebrew/lib -L/opt/homebrew/opt/openssl/lib"
|
|
||||||
CFLAGS: "-I/usr/local/include -I/opt/homebrew/include -I/usr/local/opt/openssl/include -I/opt/homebrew/opt/openssl/include"
|
|
||||||
- name: mkdir
|
- name: mkdir
|
||||||
if: ${{ startsWith(matrix.target, 'ubuntu') }}
|
if: ${{ startsWith(matrix.target, 'ubuntu') }}
|
||||||
run: mkdir ~/3proxy
|
run: mkdir ~/3proxy
|
||||||
- name: make install
|
- name: make install
|
||||||
if: ${{ startsWith(matrix.target, 'ubuntu') }}
|
if: ${{ startsWith(matrix.target, 'ubuntu') }}
|
||||||
run: make -f Makefile.Linux DESTDIR=~/3proxy install
|
run: make -f Makefile.Linux DESTDIR=~/3proxy install
|
||||||
- name: make clean Windows
|
|
||||||
if: ${{ startsWith(matrix.target, 'windows') }}
|
|
||||||
run: make -f Makefile.win clean
|
|
||||||
- name: make clean Linux
|
- name: make clean Linux
|
||||||
if: ${{ startsWith(matrix.target, 'ubuntu') }}
|
if: ${{ startsWith(matrix.target, 'ubuntu') }}
|
||||||
run: make -f Makefile.Linux clean
|
run: make -f Makefile.Linux clean
|
||||||
|
- name: Mac libraries
|
||||||
|
if: ${{ startsWith(matrix.target, 'macos') }}
|
||||||
|
run: brew install pcre
|
||||||
|
- name: make MacOS
|
||||||
|
if: ${{ startsWith(matrix.target, 'macos') }}
|
||||||
|
run: make -f Makefile.FreeBSD
|
||||||
|
env:
|
||||||
|
LDFLAGS: "-L/usr/local/lib -L/opt/homebrew/lib -L/opt/homebrew/opt/openssl/lib"
|
||||||
|
CFLAGS: "-I/usr/local/include -I/opt/homebrew/include -I/usr/local/opt/openssl/include -I/opt/homebrew/opt/openssl/include"
|
||||||
- name: make clean MacOS
|
- name: make clean MacOS
|
||||||
if: ${{ startsWith(matrix.target, 'macos') }}
|
if: ${{ startsWith(matrix.target, 'macos') }}
|
||||||
run: make -f Makefile.FreeBSD clean
|
run: make -f Makefile.FreeBSD clean
|
||||||
|
- name: make Windows
|
||||||
|
if: ${{ startsWith(matrix.target, 'windows') }}
|
||||||
|
run: make -f Makefile.win
|
||||||
|
env:
|
||||||
|
LIBS: '-L "c:/program files/openssl/lib/VC/x64/MT"'
|
||||||
|
CFLAGS: '-I "c:/program files/openssl/include"'
|
||||||
|
- name: make clean Windows
|
||||||
|
if: ${{ startsWith(matrix.target, 'windows') }}
|
||||||
|
run: make -f Makefile.win clean
|
||||||
|
- name: make Windows
|
||||||
|
if: ${{ startsWith(matrix.target, 'windows') }}
|
||||||
|
run: nmake /F Makefile.msvc64
|
||||||
|
env:
|
||||||
|
LIBS: '-L "c:/program files/openssl/lib/VC/x64/MT"'
|
||||||
|
CFLAGS: '-I "c:/program files/openssl/include"'
|
||||||
|
- name: make clean Windows
|
||||||
|
if: ${{ startsWith(matrix.target, 'windows') }}
|
||||||
|
run: nmake /F Makefile.msvc64 clean
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user