Skip to content

Commit

Permalink
Merge pull request #337 from QGIS-Contribution/ci/fix-translation-build
Browse files Browse the repository at this point in the history
fix(ci): fix translation build
  • Loading branch information
Guts authored May 13, 2024
2 parents be4c526 + 230e876 commit 91ff2b6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,21 @@ jobs:
- name: Get source code
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: "pip"
cache-dependency-path: "requirements/translation.txt"

- name: Install system requirements
run: |
sudo apt update
sudo apt install qt5-qmake qttools5-dev-tools
python3 -m pip install -U pyqt5-tools
- name: Update translations
run: lupdate -noobsolete -verbose ${{ env.PROJECT_FOLDER }}/resources/i18n/plugin_translation.pro
run: pylupdate5 -noobsolete -verbose ${{ env.PROJECT_FOLDER }}/resources/i18n/plugin_translation.pro

- name: Compile translations
run: lrelease ${{ env.PROJECT_FOLDER }}/resources/i18n/*.ts
Expand Down
5 changes: 0 additions & 5 deletions requirements/base.txt

This file was deleted.

1 change: 1 addition & 0 deletions requirements/translation.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pyqt5-tools

0 comments on commit 91ff2b6

Please sign in to comment.