mirror of
https://github.com/3proxy/3proxy.git
synced 2026-04-06 21:30:12 +08:00
Update workflows
This commit is contained in:
parent
925516d3f3
commit
1391a31c35
2
.github/workflows/build-winarm64.yml
vendored
2
.github/workflows/build-winarm64.yml
vendored
@ -3,7 +3,7 @@ name: Build Win-arm64 3proxy with MSVC
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "master" ]
|
branches: [ "master" ]
|
||||||
paths: [ 'RELEASE', '.github/workflows/build-win32.yml' ]
|
paths: [ 'RELEASE', '.github/workflows/build-winarm64.yml' ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ci:
|
ci:
|
||||||
|
|||||||
36
.github/workflows/c-cpp-Linux.yml
vendored
Normal file
36
.github/workflows/c-cpp-Linux.yml
vendored
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
name: C/C++ CI Linux
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ "master" ]
|
||||||
|
paths: [ '**.c', '**.h', 'Makefile.**', '.github/configs', '.github/workflows/c-cpp.yml' ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ "master" ]
|
||||||
|
paths: [ '**.c', '**.h', 'Makefile.**', '.github/configs', '.github/workflows/c-cpp.yml' ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
ci:
|
||||||
|
name: "${{ matrix.target }}"
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
target:
|
||||||
|
- ubuntu-latest
|
||||||
|
- ubuntu-24.04-arm
|
||||||
|
- macos-15
|
||||||
|
- windows-2022
|
||||||
|
runs-on: ${{ matrix.target }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
# - name: configure
|
||||||
|
# run: ./configure
|
||||||
|
- name: Linux libraries
|
||||||
|
if: ${{ startsWith(matrix.target, 'ubuntu') }}
|
||||||
|
run: sudo apt install libssl-dev libpam-dev libpcre2-dev
|
||||||
|
- name: make
|
||||||
|
run: make -f Makefile.Linux
|
||||||
|
- name: mkdir
|
||||||
|
run: mkdir ~/3proxy
|
||||||
|
- name: make install
|
||||||
|
run: make -f Makefile.Linux DESTDIR=~/3proxy install
|
||||||
|
- name: make clean Linux
|
||||||
|
run: make -f Makefile.Linux clean
|
||||||
34
.github/workflows/c-cpp-MacOS.yml
vendored
Normal file
34
.github/workflows/c-cpp-MacOS.yml
vendored
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
name: C/C++ CI MacOS
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ "master" ]
|
||||||
|
paths: [ '**.c', '**.h', 'Makefile.**', '.github/configs', '.github/workflows/c-cpp-MacOS.yml' ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ "master" ]
|
||||||
|
paths: [ '**.c', '**.h', 'Makefile.**', '.github/configs', '.github/workflows/c-cpp-MacOS.yml' ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
ci:
|
||||||
|
name: "${{ matrix.target }}"
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
target:
|
||||||
|
- macos-15
|
||||||
|
runs-on: ${{ matrix.target }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
# - name: configure
|
||||||
|
# run: ./configure
|
||||||
|
- name: Mac libraries
|
||||||
|
if: ${{ startsWith(matrix.target, 'macos') }}
|
||||||
|
run: brew install pcre2
|
||||||
|
- 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
|
||||||
|
if: ${{ startsWith(matrix.target, 'macos') }}
|
||||||
|
run: make -f Makefile.FreeBSD clean
|
||||||
49
.github/workflows/c-cpp-Windows.yml
vendored
Normal file
49
.github/workflows/c-cpp-Windows.yml
vendored
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
name: C/C++ CI Windows
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ "master" ]
|
||||||
|
paths: [ '**.c', '**.h', 'Makefile.**', '.github/configs', '.github/workflows/c-cpp-Windows.yml' ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ "master" ]
|
||||||
|
paths: [ '**.c', '**.h', 'Makefile.**', '.github/configs', '.github/workflows/c-cpp-Windows.yml' ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
ci:
|
||||||
|
name: "${{ matrix.target }}"
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
target:
|
||||||
|
- ubuntu-latest
|
||||||
|
- ubuntu-24.04-arm
|
||||||
|
- macos-15
|
||||||
|
- windows-2022
|
||||||
|
runs-on: ${{ matrix.target }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: install Windows libraries
|
||||||
|
if: ${{ startsWith(matrix.target, 'windows') }}
|
||||||
|
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
|
||||||
|
if: ${{ startsWith(matrix.target, '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
|
||||||
|
if: ${{ startsWith(matrix.target, 'windows') }}
|
||||||
|
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:/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.msvc
|
||||||
|
nmake /F Makefile.msvc clean
|
||||||
@ -1,12 +1,12 @@
|
|||||||
name: C/C++ CI
|
name: C/C++ CI cmake
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "master" ]
|
branches: [ "master" ]
|
||||||
paths: [ '**.c', '**.h', 'Makefile.**', '.github/configs', '.github/workflows/c-cpp.yml' ]
|
paths: [ '**.c', '**.h', 'Makefile.**', '.github/configs', '.github/workflows/c-cpp-cmake.yml' ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "master" ]
|
branches: [ "master" ]
|
||||||
paths: [ '**.c', '**.h', 'Makefile.**', '.github/configs', '.github/workflows/c-cpp.yml' ]
|
paths: [ '**.c', '**.h', 'Makefile.**', '.github/configs', '.github/workflows/c-cpp-cmake.yml' ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ci:
|
ci:
|
||||||
@ -26,18 +26,6 @@ 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 libpcre2-dev
|
run: sudo apt install libssl-dev libpam-dev libpcre2-dev
|
||||||
- name: make Ubuntu
|
|
||||||
if: ${{ startsWith(matrix.target, 'ubuntu') }}
|
|
||||||
run: make -f Makefile.Linux
|
|
||||||
- name: mkdir
|
|
||||||
if: ${{ startsWith(matrix.target, 'ubuntu') }}
|
|
||||||
run: mkdir ~/3proxy
|
|
||||||
- name: make install
|
|
||||||
if: ${{ startsWith(matrix.target, 'ubuntu') }}
|
|
||||||
run: make -f Makefile.Linux DESTDIR=~/3proxy install
|
|
||||||
- name: make clean Linux
|
|
||||||
if: ${{ startsWith(matrix.target, 'ubuntu') }}
|
|
||||||
run: make -f Makefile.Linux clean
|
|
||||||
- name: Mac libraries
|
- name: Mac libraries
|
||||||
if: ${{ startsWith(matrix.target, 'macos') }}
|
if: ${{ startsWith(matrix.target, 'macos') }}
|
||||||
run: brew install pcre2
|
run: brew install pcre2
|
||||||
@ -53,32 +41,9 @@ jobs:
|
|||||||
- name: install Windows libraries
|
- name: install Windows libraries
|
||||||
if: ${{ startsWith(matrix.target, 'windows') }}
|
if: ${{ startsWith(matrix.target, 'windows') }}
|
||||||
run: vcpkg install pcre2:x64-windows && c:\msys64\usr\bin\pacman.exe -S --noconfirm mingw-w64-x86_64-pcre2 mingw-w64-x86_64-openssl
|
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
|
|
||||||
if: ${{ startsWith(matrix.target, '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
|
|
||||||
if: ${{ startsWith(matrix.target, 'windows') }}
|
|
||||||
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:/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.msvc
|
|
||||||
nmake /F Makefile.msvc clean
|
|
||||||
- name: make with CMake POSIX
|
- name: make with CMake POSIX
|
||||||
if: ${{ ! startsWith(matrix.target, 'windows') }}
|
if: ${{ ! startsWith(matrix.target, 'windows') }}
|
||||||
run: mkdir build && cd build && cmake .. && cmake --build .
|
run: mkdir build && cd build && cmake .. && cmake --build && mkdir ~/3proxy && DESTDIR=~/3proxy cmake --install . && cd .. && rm -rf build/
|
||||||
- name: make with CMake Win
|
- name: make with CMake Win
|
||||||
if: ${{ startsWith(matrix.target, 'windows') }}
|
if: ${{ startsWith(matrix.target, 'windows') }}
|
||||||
shell: cmd
|
shell: cmd
|
||||||
@ -90,3 +55,5 @@ jobs:
|
|||||||
cmake ..
|
cmake ..
|
||||||
dir
|
dir
|
||||||
cmake --build .
|
cmake --build .
|
||||||
|
cd ..
|
||||||
|
rmdir /s /q build
|
||||||
Loading…
Reference in New Issue
Block a user