Skip to content

corrected qt version #13

corrected qt version

corrected qt version #13

Workflow file for this run

name: Build Qt Project
on:
push:
branches:
- cpp
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup MSVC
uses: microsoft/setup-msbuild@v1
with:
vs-version: 'latest' # Use the latest Visual Studio version
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: '6.7.2'
add-tools-to-path: true
tools: 'tools_qtcreator,qt.tools.qtcreator'
- name: Search for jom.exe
shell: pwsh
run: |
$qtRootDir = "D:\a\BigPictureTV\Qt" # Adjust to the root directory of your Qt installation
$jomPath = Get-ChildItem -Path $qtRootDir -Filter jom.exe -Recurse -ErrorAction SilentlyContinue | Select-Object -First 1
if ($jomPath) {
Write-Host "Found jom.exe at: $($jomPath.FullName)"
$env:PATH += ";$($jomPath.DirectoryName)"
[System.Environment]::SetEnvironmentVariable('PATH', $env:PATH, [System.EnvironmentVariableTarget]::Process)
} else {
Write-Host "jom.exe not found in the specified directory."
exit 1
}
# Verify the jom installation
where.exe jom
- name: Set up environment for jom
run: |
# Add jom directory to PATH
$env:PATH += ";C:\Qt\Tools\QtCreator\bin\jom"
[System.Environment]::SetEnvironmentVariable('PATH', $env:PATH, [System.EnvironmentVariableTarget]::Machine)
- name: Build with qmake and jom
shell: pwsh
run: |
# Add jom directory to PATH
$env:PATH += ";C:\Qt\Tools\QtCreator\bin\jom"
[System.Environment]::SetEnvironmentVariable('PATH', $env:PATH, [System.EnvironmentVariableTarget]::Process)
where.exe jom
mkdir build
cd build
qmake ..\BigPictureTV-CPP.pro
jom