Skip to content

Commit

Permalink
release #42
Browse files Browse the repository at this point in the history
  • Loading branch information
yousefvand committed Nov 29, 2024
1 parent 32e6d1b commit e76e559
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,31 @@ jobs:
choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System' -y
choco install visualstudio2022buildtools -y --params="'--add Microsoft.VisualStudio.Workload.VCTools --includeRecommended --quiet --norestart'"
shell: cmd

- name: Verify Qt Installation
if: matrix.os == 'windows-latest'
run: |
$qtPath = "C:\Qt\6.5.3\msvc2019_64\lib\cmake"
if (!(Test-Path $qtPath)) {
Write-Output "Qt not found at $qtPath"
exit 1
} else {
Write-Output "Qt found at $qtPath"
}
shell: pwsh

- name: Verify Visual Studio Installation
if: matrix.os == 'windows-latest'
run: |
$vcvarsPath = "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
if (!(Test-Path $vcvarsPath)) {
Write-Output "Visual Studio Build Tools not found at $vcvarsPath. Installation failed."
Write-Output "Visual Studio Build Tools not found at $vcvarsPath."
exit 1
} else {
Write-Output "Found Visual Studio Build Tools at $vcvarsPath"
}
shell: pwsh

- name: Configure CMake (Windows)
if: matrix.os == 'windows-latest'
run: |
Expand All @@ -106,12 +120,14 @@ jobs:
-G Ninja ^
-S D:\a\Notepad--\Notepad--
shell: cmd

- name: Build application (Windows)
if: matrix.os == 'windows-latest'
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvars64.bat" && ^
cmake --build D:\a\Notepad--\Notepad--\build --config Release
shell: cmd

- name: Package application (Windows)
if: matrix.os == 'windows-latest'
run: |
Expand Down

0 comments on commit e76e559

Please sign in to comment.