Skip to content

Qt GUI: Remove translations files from Git and generate them before build instead + remove WebView2 SDK version dependency #45

Qt GUI: Remove translations files from Git and generate them before build instead + remove WebView2 SDK version dependency

Qt GUI: Remove translations files from Git and generate them before build instead + remove WebView2 SDK version dependency #45

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/**'
env:
QT_VER: *

Check failure on line 19 in .github/workflows/MediaInfo-Qt_Checks.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/MediaInfo-Qt_Checks.yml

Invalid workflow file

You have an error in your yaml syntax on line 19
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: ${{ env.QT_VER }}
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: ${{ env.QT_VER }}
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=${{ env.QT_ROOT_DIR }}\..\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" && ${{ env.IQTA_TOOLS }}\QtCreator\bin\jom\jom.exe qmake_all
${{ env.IQTA_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" && ${{ env.IQTA_TOOLS }}\QtCreator\bin\jom\jom.exe qmake_all
${{ env.IQTA_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: ${{ env.QT_VER }}
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