Fix windows build?
This commit is contained in:
14
.github/workflows/build-windows.yml
vendored
14
.github/workflows/build-windows.yml
vendored
@@ -23,6 +23,12 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: mingw-w64-x86_64-toolchain
|
||||
msystem: mingw64
|
||||
release: false
|
||||
|
||||
- name: Install Qt
|
||||
uses: jurplel/install-qt-action@v3
|
||||
with:
|
||||
@@ -32,14 +38,8 @@ jobs:
|
||||
target: 'desktop'
|
||||
arch: 'win32_mingw73'
|
||||
|
||||
- name: Set up MinGW
|
||||
run: choco install mingw
|
||||
|
||||
- name: Set up OpenSSL
|
||||
run: powershell.exe "${{ github.workspace }}\.github\workflows\installOpenSSL.ps1"
|
||||
|
||||
- name: Configure CMake
|
||||
run: cmake -B "${{github.workspace}}\build" -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DOPENSSL_ROOT_DIR="C:\ProgramData\chocolatey\lib\openssl"
|
||||
run: cmake -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_PREFIX_PATH="${{env.Qt5_Dir}}/lib/cmake/" -DQt5_DIR=${{env.Qt5_Dir}}/lib/cmake/Qt5/ -G "CodeBlocks - MinGW Makefiles" -B '${{github.workspace}}'/build
|
||||
|
||||
- name: Build
|
||||
run: cmake --build "${{github.workspace}}\build" --config ${{env.BUILD_TYPE}}
|
||||
|
Reference in New Issue
Block a user