Update build-qv2ray.yml

This commit is contained in:
Qv2ray Maintainer 2020-01-30 13:49:30 +08:00 committed by GitHub
parent 14c5fca4ff
commit a931410ceb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,26 +77,18 @@ jobs:
if: matrix.platform == 'windows-latest' && matrix.backend == 'libqvb'
run: curl -o .\libs\libqvb-win64.a -L https://github.com/Qv2ray/QvRPCBridge/releases/download/v1.1/libqvb-win64.a
# -------------------------------------------------------- Generate MakeFile
- name: Generate Makefile for gRPC
if: matrix.backend != 'libqvb'
- name: Generate Makefile
shell: bash
env:
OS: ${{ matrix.platform }}
backend: ${{ matrix.backend })
run: |
PATH=$PATH:$Qt5_Dir
mkdir build
cd build
export _QV2RAY_BUILD_INFO_="Github Action Asset"
export _QV2RAY_BUILD_EXTRA_INFO_="This is a build of Qv2ray from Github Action: qt${{ matrix.qt_version }}-${{ matrix.backend }}-${{ matrix.platform }}"
qmake .. CONFIG+=no_increase_build_number PREFIX=/usr
- name: Generate Makefile for libqvb
if: matrix.backend == 'libqvb'
shell: bash
run: |
PATH=$PATH:$Qt5_Dir
mkdir build
cd build
export _QV2RAY_BUILD_INFO_="Github Action Asset"
export _QV2RAY_BUILD_EXTRA_INFO_="This is a build of Qv2ray from Github Action: qt${{ matrix.qt_version }}-${{ matrix.backend }}-${{ matrix.platform }}"
qmake .. CONFIG+=no_increase_build_number CONFIG+=with_new_backend PREFIX=/usr
qmake .. CONFIG+=no_increase_build_number $([ "$backend" == libqvb ] && echo "CONFIG+=with_new_backend" || echo "") PREFIX=/usr
# -------------------------------------------------------- Build
- name: Linux - ${{ matrix.qt_version }} - ${{ matrix.backend }} - Build Qv2ray
if: matrix.platform == 'ubuntu-16.04'