From 70e84a482e61e8f92c097dc2526909fc1c78a770 Mon Sep 17 00:00:00 2001 From: Remisa Yousefvand Date: Tue, 26 Nov 2024 10:37:35 +0330 Subject: [PATCH] github action #111 --- .github/workflows/cmake-multi-platform.yml | 23 +++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index baadfa4..30fe3be 100755 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -60,6 +60,18 @@ jobs: choco install llvm -y pip install html5lib + - name: Validate gperf Installation + if: matrix.os == 'windows-latest' + shell: powershell + run: | + $gperfPath = (Get-Command gperf).Source + if (-not $gperfPath) { + Write-Host "gperf is not available in the PATH. Reinstalling..." + choco install gperf -y + } else { + Write-Host "gperf found at $gperfPath" + } + - name: Restore Qt Source Cache (Windows) if: matrix.os == 'windows-latest' uses: actions/cache@v3 @@ -98,17 +110,6 @@ jobs: SET "VS_VARS_CMD=%VS_PATH%\VC\Auxiliary\Build\vcvars64.bat" CALL "%VS_VARS_CMD%" || exit /b 1 - REM Validate required tools - IF NOT EXIST "C:\Program Files\LLVM\bin\clang.exe" ( - echo "LLVM tools not found! Check LLVM installation." && exit /b 1 - ) - IF NOT EXIST "C:\Program Files\gperf\gperf.exe" ( - echo "gperf not found! Check gperf installation." && exit /b 1 - ) - IF NOT EXIST "C:\Program Files\bison\bison.exe" ( - echo "bison not found! Check bison installation." && exit /b 1 - ) - REM Build Qt from source SET QT_SOURCE=D:\qt-source\qt-everywhere-src-6.5.3 IF NOT EXIST "%QT_SOURCE%\qtbase\configure.bat" (