-
Notifications
You must be signed in to change notification settings - Fork 8
46 lines (44 loc) · 1.67 KB
/
report-missing-client-translations.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
# yamllint disable rule:line-length
name: Report missing client translations
# yamllint disable-line rule:truthy
on:
push:
paths:
- .github/scripts/python_setup.sh
- .github/scripts/report_missing_client_translations.sh
- .github/workflows/report-missing-client-translations.yml
- 'tablet_qt/**.cpp'
- 'tablet_qt/**.h'
- tablet_qt/tools/build_client_translations.py
- tablet_qt/translations/*.ts
env:
# Keep in sync with tablet_qt/qt_version.txt. We check this further down.
QT_VERSION: 6.5.3
jobs:
report-missing-client-translations:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Qt version check
run: |
set -euxo pipefail
test "${{ env.QT_VERSION }}" == "$(cat ${GITHUB_WORKSPACE}/tablet_qt/qt_version.txt)"
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
aqtversion: "==3.1.*"
version: ${{ env.QT_VERSION }}
host: linux
target: desktop
arch: gcc_64
archives: "qtbase qtdeclarative qttools qttranslations icu"
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Report missing client translations
run: |
set -euxo pipefail
ls ${Qt6_DIR}/lib
${GITHUB_WORKSPACE}/.github/scripts/python_setup.sh
${GITHUB_WORKSPACE}/.github/scripts/report_missing_client_translations.sh