corrected qt version #14
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: 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 | |
D:\a\BigPictureTV\Qt\Tools\QtCreator\bin\jom\jom.exe |