Skip to content

corrected qt version #16

corrected qt version

corrected qt version #16

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: Set up Visual Studio shell
uses: egor-tensin/vs-shell@v2
with:
arch: x64
- 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
- name: Build with qmake and jom
shell: pwsh
run: |
mkdir build
cd build
qmake ..\BigPictureTV-CPP.pro
D:\a\BigPictureTV\Qt\Tools\QtCreator\bin\jom\jom.exe