mirror of
https://github.com/Qv2ray/Qv2ray.git
synced 2025-05-21 11:20:49 +08:00
fix: enable debug build CI
This commit is contained in:
parent
160d58c4b2
commit
adcc21828e
23
.github/workflows/build-qv2ray-cmake.yml
vendored
23
.github/workflows/build-qv2ray-cmake.yml
vendored
@ -25,6 +25,7 @@ jobs:
|
||||
matrix:
|
||||
qt_version: [5.15.0]
|
||||
platform: [ubuntu-16.04, macos-latest, windows-latest]
|
||||
build_type: [Debug, Release]
|
||||
arch: [x86, x64]
|
||||
include:
|
||||
- platform: windows-latest
|
||||
@ -121,7 +122,7 @@ jobs:
|
||||
run: |
|
||||
mkdir build
|
||||
cd build
|
||||
cmake .. -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_DEPLOYMENT_TARGET=10.13 -DDS_STORE_SCRIPT=ON
|
||||
cmake .. -GNinja -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_OSX_DEPLOYMENT_TARGET=10.13 -DDS_STORE_SCRIPT=ON
|
||||
cmake --build . --parallel $(sysctl -n hw.logicalcpu)
|
||||
sudo cmake --install .
|
||||
appdmg ../assets/package_dmg.json ../Qv2ray.dmg
|
||||
@ -135,7 +136,7 @@ jobs:
|
||||
run: |
|
||||
mkdir build
|
||||
cd build
|
||||
cmake .. -GNinja -DCMAKE_INSTALL_PREFIX=./deployment -DCMAKE_BUILD_TYPE=Release
|
||||
cmake .. -GNinja -DCMAKE_INSTALL_PREFIX=./deployment -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
|
||||
cmake --build . --parallel $(nproc)
|
||||
cmake --install .
|
||||
# --------------------------------------------------------
|
||||
@ -148,7 +149,7 @@ jobs:
|
||||
run: |
|
||||
mkdir build
|
||||
cd build
|
||||
cmake .. -GNinja -DCMAKE_INSTALL_PREFIX=./AppDir/usr -DCMAKE_BUILD_TYPE=Release -DQV2RAY_TRANSLATION_PATH=QApplication::applicationDirPath\(\)+"/../share/qv2ray/lang"
|
||||
cmake .. -GNinja -DCMAKE_INSTALL_PREFIX=./AppDir/usr -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DQV2RAY_TRANSLATION_PATH=QApplication::applicationDirPath\(\)+"/../share/qv2ray/lang"
|
||||
cmake --build . --parallel $(nproc)
|
||||
cmake --install .
|
||||
# ========================================================================================================= Deployments
|
||||
@ -174,15 +175,15 @@ jobs:
|
||||
cd ..
|
||||
squashfs-root/AppRun AppDir/usr/share/applications/qv2ray.desktop -appimage -no-strip -always-overwrite
|
||||
mv ./Qv2ray*.AppImage ./Qv2ray.AppImage
|
||||
- name: Linux - ${{ matrix.qt_version }} - Uploading artifact
|
||||
- name: Linux - ${{ matrix.qt_version }} - Uploading Artifact
|
||||
if: matrix.platform == 'ubuntu-16.04'
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: Qv2ray-${{ github.sha }}.linux-${{ matrix.arch }}.qt${{ matrix.qt_version }}.AppImage
|
||||
name: Qv2ray-${{ github.sha }}.linux-${{ matrix.arch }}.qt${{ matrix.qt_version }}-${{ matrix.build_type }}.AppImage
|
||||
path: build/Qv2ray.AppImage
|
||||
- name: Linux - ${{ matrix.qt_version }} - Upload binaries to release
|
||||
uses: svenstaro/upload-release-action@v1-release
|
||||
if: github.event_name == 'release' && matrix.platform == 'ubuntu-16.04' && matrix.qt_version == '5.15.0'
|
||||
if: github.event_name == 'release' && matrix.platform == 'ubuntu-16.04' && matrix.qt_version == '5.15.0' && matrix.build_type == 'Release'
|
||||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
file: build/Qv2ray.AppImage
|
||||
@ -194,11 +195,11 @@ jobs:
|
||||
if: matrix.platform == 'macos-latest'
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: Qv2ray-${{ github.sha }}.macOS-${{ matrix.arch }}.qt${{ matrix.qt_version }}.dmg
|
||||
name: Qv2ray-${{ github.sha }}.macOS-${{ matrix.arch }}.qt${{ matrix.qt_version }}-${{ matrix.build_type }}.dmg
|
||||
path: Qv2ray.dmg
|
||||
- name: macOS - ${{ matrix.qt_version }} - Upload binaries to release
|
||||
uses: svenstaro/upload-release-action@v1-release
|
||||
if: github.event_name == 'release' && matrix.platform == 'macos-latest' && matrix.qt_version == '5.15.0'
|
||||
if: github.event_name == 'release' && matrix.platform == 'macos-latest' && matrix.qt_version == '5.15.0' && matrix.build_type == 'Release'
|
||||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
file: Qv2ray.dmg
|
||||
@ -212,15 +213,15 @@ jobs:
|
||||
with:
|
||||
pathSource: ./build/deployment/
|
||||
pathTarget: ./release.7z
|
||||
- name: Win-${{ matrix.arch }} - ${{ matrix.qt_version }} - Uploading artifact
|
||||
- name: Win-${{ matrix.arch }} - ${{ matrix.qt_version }} - Uploading Artifact
|
||||
if: matrix.platform == 'windows-latest'
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: Qv2ray-${{ github.sha }}.Windows-${{ matrix.arch }}.qt${{ matrix.qt_version }}.7z
|
||||
name: Qv2ray-${{ github.sha }}.Windows-${{ matrix.arch }}.qt${{ matrix.qt_version }}-${{ matrix.build_type }}.7z
|
||||
path: release.7z
|
||||
- name: Win-${{ matrix.arch }} - ${{ matrix.qt_version }} - Upload binaries to release
|
||||
uses: svenstaro/upload-release-action@v1-release
|
||||
if: github.event_name == 'release' && matrix.platform == 'windows-latest' && matrix.qt_version == '5.15.0'
|
||||
if: github.event_name == 'release' && matrix.platform == 'windows-latest' && matrix.qt_version == '5.15.0' && matrix.build_type == 'Release'
|
||||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
file: release.7z
|
||||
|
@ -1 +1 @@
|
||||
5861
|
||||
5862
|
||||
|
Loading…
Reference in New Issue
Block a user