Qt GUI: Remove translations files from Git and generate them before build instead + remove WebView2 SDK version dependency #41
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: MediaInfo-Qt Checks | |
on: | |
push: | |
paths: | |
- '.github/workflows/MediaInfo-Qt_Checks.yml' | |
- 'Project/QMake/GUI/**' | |
- 'Source/GUI/Qt/**' | |
- 'Source/Resource/**' | |
pull_request: | |
paths: | |
- '.github/workflows/MediaInfo-Qt_Checks.yml' | |
- 'Project/QMake/GUI/**' | |
- 'Source/GUI/Qt/**' | |
- 'Source/Resource/**' | |
jobs: | |
Windows: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
architecture: [ x64, ARM64 ] | |
fail-fast: false | |
steps: | |
- name: Checkout zlib | |
uses: actions/checkout@v4 | |
with: | |
repository: MediaArea/zlib | |
path: zlib | |
- name: Checkout ZenLib | |
uses: actions/checkout@v4 | |
with: | |
repository: MediaArea/ZenLib | |
path: ZenLib | |
- name: Checkout MediaInfoLib | |
uses: actions/checkout@v4 | |
with: | |
repository: MediaArea/MediaInfoLib | |
path: MediaInfoLib | |
- name: Checkout MediaInfo | |
uses: actions/checkout@v4 | |
with: | |
path: MediaInfo | |
- name: Set-up Qt x64 | |
if: matrix.architecture == 'x64' | |
uses: jurplel/install-qt-action@v4 | |
with: | |
version: 6.8.2 | |
tools: 'tools_qtcreator,qt.tools.qtcreator' | |
- name: Set-up Qt ARM64 | |
if: matrix.architecture == 'ARM64' | |
uses: jurplel/install-qt-action@v4 | |
with: | |
arch: 'win64_msvc2022_arm64_cross_compiled' | |
version: 6.8.2 | |
tools: 'tools_qtcreator,qt.tools.qtcreator' | |
- name: Add msbuild to PATH | |
uses: microsoft/setup-msbuild@v2 | |
- name: Build dependencies | |
run: | | |
msbuild -t:MediaInfoLib -p:Configuration=Release -p:Platform=${{ matrix.architecture }} -clp:ForceConsoleColor ${{ github.workspace }}\MediaInfoLib\Project\MSVC2022\MediaInfoLib.sln | |
xcopy /y ${{ github.workspace }}\MediaInfoLib\Project\MSVC2022\${{ matrix.architecture }}\Release\ZenLib.lib ${{ github.workspace }}\ZenLib\Project\MSVC2022\${{ matrix.architecture }}\Release\ | |
- name: Generate translations files | |
shell: cmd | |
run: | | |
set PATH=D:\a\MediaInfo\Qt\6.8.2\msvc2022_64\bin\;%PATH% | |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64 | |
call ${{ github.workspace }}\MediaInfo\Source\GUI\Qt\Qt_Translations_Updater\update_Qt_translations.cmd | |
- name: Build x64 | |
if: matrix.architecture == 'x64' | |
shell: cmd | |
run: | | |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64 | |
qmake.exe ${{ github.workspace }}\MediaInfo\Project\QMake\GUI\MediaInfoQt.pro -spec win32-msvc "CONFIG+=qtquickcompiler" && D:\a\MediaInfo\Qt\Tools\QtCreator\bin\jom\jom.exe qmake_all | |
D:\a\MediaInfo\Qt\Tools\QtCreator\bin\jom\jom.exe | |
- name: Build ARM64 | |
if: matrix.architecture == 'ARM64' | |
shell: cmd | |
run: | | |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64_arm64 | |
call qmake.bat ${{ github.workspace }}\MediaInfo\Project\QMake\GUI\MediaInfoQt.pro -spec win32-arm64-msvc "CONFIG+=qtquickcompiler" && D:\a\MediaInfo\Qt\Tools\QtCreator\bin\jom\jom.exe qmake_all | |
D:\a\MediaInfo\Qt\Tools\QtCreator\bin\jom\jom.exe | |
Ubuntu: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout MediaInfo | |
uses: actions/checkout@v4 | |
with: | |
path: MediaInfo | |
- name: Install dependencies | |
run: | | |
sudo apt-get update -y | |
sudo apt-get install -y zlib1g-dev libgl1-mesa-dev libzen-dev libmediainfo-dev | |
- name: Set-up Qt | |
uses: jurplel/install-qt-action@v4 | |
with: | |
arch: linux_gcc_64 | |
version: 6.8.2 | |
modules: 'qtpositioning qtwebchannel qtwebengine' | |
- name: Generate translations files | |
shell: bash | |
env: | |
TERM: linux | |
run: | | |
chmod +x ${{ github.workspace }}/MediaInfo/Source/GUI/Qt/Qt_Translations_Updater/update_Qt_translations.sh | |
${{ github.workspace }}/MediaInfo/Source/GUI/Qt/Qt_Translations_Updater/update_Qt_translations.sh | |
- name: Build | |
run: | | |
qmake ${{ github.workspace }}/MediaInfo/Project/QMake/GUI/MediaInfoQt.pro -spec linux-g++ CONFIG+=qtquickcompiler && make qmake_all | |
make -j4 |