mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-18 20:50:09 +08:00
ci: build qt with openssl on windows
This commit is contained in:
parent
2b5bde651b
commit
a5e40cf6aa
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
@ -148,6 +148,12 @@ jobs:
|
||||
with:
|
||||
path: download-artifact
|
||||
# ========================================================================================================= Qt Install
|
||||
- name: Install OpenSSL (Windows)
|
||||
if: matrix.platform == 'windows-latest'
|
||||
shell: bash
|
||||
run: |
|
||||
curl -L -o openssl.7z https://github.com/throneproj/env_windows_legacy/releases/download/latest/openssl-${{ matrix.target }}.7z
|
||||
7z x openssl.7z
|
||||
- name: Qt static Cache
|
||||
id: cache-static-Qt
|
||||
if: matrix.platform == 'windows-latest' && matrix.qt_version != '6.2.12'
|
||||
@ -156,9 +162,11 @@ jobs:
|
||||
path: qt6/build
|
||||
key: QtStaticCache-${{ matrix.platform }}-${{ matrix.target }}-Qt${{ matrix.qt_version }}
|
||||
- name: Install Qt Windows
|
||||
shell: powershell
|
||||
shell: cmd
|
||||
if: matrix.platform == 'windows-latest' && steps.cache-static-Qt.outputs.cache-hit != 'true' && matrix.qt_version != '6.2.12'
|
||||
run: ./script/build_qt_static_windows.bat ${{ matrix.qt_version }}
|
||||
run: |
|
||||
set "OPENSSL_ROOT_DIR=%cd%\openssl"
|
||||
./script/build_qt_static_windows.bat ${{ matrix.qt_version }}
|
||||
- name: Install Qt
|
||||
uses: jurplel/install-qt-action@v4.3.0
|
||||
if: matrix.platform != 'windows-latest'
|
||||
@ -173,6 +181,7 @@ jobs:
|
||||
if: matrix.platform == 'windows-latest' && matrix.qt_version != '6.2.12'
|
||||
run: |
|
||||
export CMAKE_PREFIX_PATH=$PWD/qt6/build/lib/cmake
|
||||
export OPENSSL_ROOT_DIR=$PWD/openssl
|
||||
mkdir build
|
||||
cd build
|
||||
curl -fLso srslist.h "https://raw.githubusercontent.com/throneproj/routeprofiles/rule-set/srslist.h"
|
||||
@ -186,8 +195,6 @@ jobs:
|
||||
run: |
|
||||
curl -L -o qt.7z https://github.com/throneproj/env_windows_legacy/releases/download/latest/qt-${{ matrix.target }}.7z
|
||||
7z x qt.7z
|
||||
curl -L -o openssl.7z https://github.com/throneproj/env_windows_legacy/releases/download/latest/openssl-${{ matrix.target }}.7z
|
||||
7z x openssl.7z
|
||||
export CMAKE_PREFIX_PATH=$PWD/Qt/lib/cmake
|
||||
export OPENSSL_ROOT_DIR=$PWD/openssl
|
||||
mkdir build
|
||||
|
||||
@ -3,7 +3,7 @@ cd qt6
|
||||
|
||||
git switch %1
|
||||
mkdir build
|
||||
CALL .\configure.bat -release -static -prefix ./build -static-runtime -submodules qtbase,qtimageformats,qtsvg,qttranslations -skip tests -skip examples -gui -widgets -init-submodules
|
||||
CALL .\configure.bat -release -static -prefix ./build -static-runtime -submodules qtbase,qtimageformats,qtsvg,qttranslations -skip tests -skip examples -gui -widgets -init-submodules -no-schannel -openssl-linked -no-dtls -no-ocsp
|
||||
echo on branch %1
|
||||
echo config complete, building...
|
||||
cmake --build . --parallel
|
||||
|
||||
Loading…
Reference in New Issue
Block a user