mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-30 22:49:04 +08:00
Actions: Improve "Install Qt" job (#374)
* Actions: Define qt_arch in matrix * Update build.yml * Update main.cpp
This commit is contained in:
parent
cb87d0f07c
commit
9e1272984a
13
.github/workflows/build.yml
vendored
13
.github/workflows/build.yml
vendored
@ -75,6 +75,7 @@ jobs:
|
|||||||
- platform: windows-latest
|
- platform: windows-latest
|
||||||
qt_version: "6.9.0"
|
qt_version: "6.9.0"
|
||||||
target: amd64
|
target: amd64
|
||||||
|
qt_arch: win64_mingw
|
||||||
- platform: ubuntu-22.04
|
- platform: ubuntu-22.04
|
||||||
qt_version: "6.9.0"
|
qt_version: "6.9.0"
|
||||||
target: amd64
|
target: amd64
|
||||||
@ -102,20 +103,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: download-artifact
|
path: download-artifact
|
||||||
# ========================================================================================================= Qt Install
|
# ========================================================================================================= Qt Install
|
||||||
- name: Install Qt Windows
|
|
||||||
uses: jurplel/install-qt-action@v4.1.1
|
|
||||||
if: matrix.platform == 'windows-latest'
|
|
||||||
with:
|
|
||||||
arch: win64_mingw
|
|
||||||
version: ${{ matrix.qt_version }}
|
|
||||||
setup-python: true
|
|
||||||
modules: qtcharts
|
|
||||||
cache: true
|
|
||||||
cache-key-prefix: QtCache-${{ matrix.platform }}-${{ matrix.target }}
|
|
||||||
- name: Install Qt
|
- name: Install Qt
|
||||||
uses: jurplel/install-qt-action@v4.1.1
|
uses: jurplel/install-qt-action@v4.1.1
|
||||||
if: matrix.platform != 'windows-latest'
|
|
||||||
with:
|
with:
|
||||||
|
arch: ${{ matrix.qt_arch }}
|
||||||
version: ${{ matrix.qt_version }}
|
version: ${{ matrix.qt_version }}
|
||||||
setup-python: true
|
setup-python: true
|
||||||
modules: qtcharts
|
modules: qtcharts
|
||||||
|
|||||||
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
#include "include/sys/windows/MiniDump.h"
|
#include "include/sys/windows/MiniDump.h"
|
||||||
#include "include/sys/windows/vcCheck.h"
|
|
||||||
#include "include/sys/windows/eventHandler.h"
|
#include "include/sys/windows/eventHandler.h"
|
||||||
#endif
|
#endif
|
||||||
#ifdef Q_OS_LINUX
|
#ifdef Q_OS_LINUX
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user