Closed xiaoyifang closed 2 years ago
Hi! Please try jurplel/install-qt-action@v3
.
Here is an example workflow for CMake build on Ubuntu. Try to understand it and make your Windows MSVC build work:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: jurplel/install-qt-action@v3
with:
version: '6.2.2'
# Qt6WebEngineCore depends on Qt6WebChannel and Qt6Positioning
modules: qtwebengine qtwebchannel qtpositioning
- run: find ../
- name: checkout the code from 'https://code.qt.io/cgit/qt/qtwebengine.git/tree/examples/webenginequick/minimal/?h=6.2.2'
run: |
wget \
--mirror \
--no-parent \
--no-host-directories \
--cut-dirs=6 \
--content-disposition \
'https://code.qt.io/cgit/qt/qtwebengine.git/plain/examples/webenginequick/minimal/?h=6.2.2'
- name: build
run: |
set -e
mkdir build/
pushd build/
cmake ../minimal
make
In addition, it seems that you are from jaredtao/HelloActions-Qt. I would recommend that you use ilammy/msvc-dev-cmd to configure the MSVC development environment since configuring environment variables manually is error-prone.
great thanks ,this has solved my problem.
https://github.com/xiaoyifang/goldendict/runs/5512685469?check_suite_focus=true
error
btw,qt5.15.2 is ok.