Update build-qv2ray-qt6.yml

This commit is contained in:
QxQ 2020-12-09 00:04:12 +08:00 committed by GitHub
parent 5ac1dbc63e
commit f78c42ae8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@ jobs:
strategy:
matrix:
ui_type: [QWidget, QML]
platform: [ubuntu-latest, macos-latest, windows-latest]
platform: [ubuntu-20.04, macos-latest, windows-latest]
arch: [x86, x64]
build_type: [RelWithDebInfo, Release]
qt_version: [6.0.0]
@ -36,7 +36,7 @@ jobs:
arch: x64
qtarch: win64_msvc2019_64
exclude:
- platform: ubuntu-latest
- platform: ubuntu-20.04
arch: x86
- platform: macos-latest
arch: x86
@ -79,7 +79,7 @@ jobs:
cached: ${{ steps.cache-qt.outputs.cache-hit }}
# =========================================================================================================
- name: Linux - ${{ matrix.qt_version }} - Build preparation - Install Packages
if: matrix.platform == 'ubuntu-latest'
if: matrix.platform == 'ubuntu-20.04'
run: |
sudo add-apt-repository ppa:webispy/grpc
sudo add-apt-repository ppa:carsten-uppenbrink-net/openssl
@ -153,7 +153,7 @@ jobs:
cp -v ./*.pdb ./deployment || true
# --------------------------------------------------------
- name: Linux - ${{ matrix.qt_version }} - Generate Dependencies and Build
if: matrix.platform == 'ubuntu-latest'
if: matrix.platform == 'ubuntu-20.04'
shell: bash
env:
CC: /usr/bin/gcc-7
@ -171,7 +171,7 @@ jobs:
cmake --install .
# ========================================================================================================= Deployments
- name: Linux - ${{ matrix.qt_version }} - Generating AppImage
if: matrix.platform == 'ubuntu-latest'
if: matrix.platform == 'ubuntu-20.04'
run: |
cd build
wget https://github.com/probonopd/linuxdeployqt/releases/download/6/linuxdeployqt-6-x86_64.AppImage
@ -193,14 +193,14 @@ jobs:
./linuxdeployqt-6-x86_64.AppImage AppDir/usr/share/applications/qv2ray.desktop -unsupported-allow-new-glibc -appimage -no-strip -always-overwrite -extra-plugins=iconengines,imageformats,platforminputcontexts
mv ./Qv2ray*.AppImage ./Qv2ray.AppImage
- name: Linux - ${{ matrix.qt_version }} - Uploading Artifact
if: matrix.platform == 'ubuntu-latest'
if: matrix.platform == 'ubuntu-20.04'
uses: actions/upload-artifact@master
with:
name: Qv2ray-${{ github.sha }}.linux-${{ matrix.arch }}-${{ matrix.ui_type }}.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-latest' && matrix.ui_type == 'QWidget' && matrix.qt_version == '5.15.0' && matrix.build_type == 'Release'
if: github.event_name == 'release' && matrix.platform == 'ubuntu-20.04' && matrix.ui_type == 'QWidget' && matrix.qt_version == '5.15.0' && matrix.build_type == 'Release'
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/Qv2ray.AppImage