corrected qt version #2
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: '6.7.2' | |
- name: Install Qt | |
run: | | |
choco install qt --version=latest --params '/QtAddToPath' | |
# Ensure the PATH is updated | |
echo "##vso[task.setvariable variable=PATH]$($env:PATH);C:\Qt\$(Get-Item C:\Qt\*\msvc*\bin).Name" | |
- name: Build with qmake | |
run: | | |
mkdir build | |
cd build | |
qmake ..\yourproject.pro | |
nmake | |
# Optionally, you can add steps for packaging or deploying the application |