2022-04-24 01:18:19 +00:00
|
|
|
name: Windows-PR-check
|
2022-06-05 05:11:01 +00:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
2022-04-24 01:18:19 +00:00
|
|
|
on:
|
|
|
|
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- dev
|
|
|
|
- master
|
|
|
|
- staged
|
|
|
|
paths-ignore:
|
|
|
|
- 'docs/**'
|
2022-11-28 13:37:42 +00:00
|
|
|
# - ".github/**"
|
2022-04-24 01:18:19 +00:00
|
|
|
- "howto/**"
|
|
|
|
- "*.md"
|
2023-05-05 07:32:20 +00:00
|
|
|
- "locale/**"
|
2022-04-24 01:18:19 +00:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
# see https://github.com/actions/virtual-environments/blob/main/images/win/Windows2019-Readme.md
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [windows-2019]
|
2023-03-26 03:39:51 +00:00
|
|
|
qt_ver: [5.15.2,6.4.3]
|
2022-04-24 01:18:19 +00:00
|
|
|
qt_arch: [win64_msvc2019_64]
|
|
|
|
steps:
|
|
|
|
- uses: actions/setup-python@v3
|
|
|
|
with:
|
|
|
|
python-version: '3.9'
|
|
|
|
- name: Install Qt
|
|
|
|
if: ${{ matrix.qt_ver == '5.15.2' }}
|
2022-11-28 13:37:42 +00:00
|
|
|
uses: jurplel/install-qt-action@v3
|
2022-04-24 01:18:19 +00:00
|
|
|
with:
|
|
|
|
version: ${{ matrix.qt_ver }}
|
|
|
|
arch: ${{ matrix.qt_arch }}
|
|
|
|
cached: 'false'
|
|
|
|
modules: qtwebengine
|
|
|
|
- name: Install Qt
|
|
|
|
if: ${{ matrix.qt_ver != '5.15.2' }}
|
2022-11-28 13:37:42 +00:00
|
|
|
uses: jurplel/install-qt-action@v3
|
2022-04-24 01:18:19 +00:00
|
|
|
with:
|
|
|
|
version: ${{ matrix.qt_ver }}
|
|
|
|
# target: ${{ matrix.qt_target }}
|
|
|
|
arch: ${{ matrix.qt_arch }}
|
|
|
|
cached: 'false'
|
2023-03-26 03:39:51 +00:00
|
|
|
modules: qtwebengine qtwebchannel qtpositioning qt5compat qtmultimedia qtimageformats qtspeech
|
2022-04-24 01:18:19 +00:00
|
|
|
setup-python: 'false'
|
2022-11-28 13:37:42 +00:00
|
|
|
|
2022-04-24 01:18:19 +00:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
fetch-depth: 1
|
2023-05-01 01:09:19 +00:00
|
|
|
submodules: true
|
2022-04-24 01:18:19 +00:00
|
|
|
|
|
|
|
- uses: ilammy/msvc-dev-cmd@v1
|
|
|
|
# with:
|
|
|
|
# arch: ${{ matrix.msvc_arch }}
|
|
|
|
- name: msvc-build goldendict
|
|
|
|
id: build
|
|
|
|
shell: cmd
|
|
|
|
run: |
|
2023-02-01 15:23:23 +00:00
|
|
|
qmake "CONFIG+=zim_support" CONFIG+=release CONFIG+=use_iconv
|
2022-04-24 01:18:19 +00:00
|
|
|
nmake
|