Refactor vcpkg availability check in release workflows for improved clarity

- Updated the condition for checking vcpkg availability in release workflows to enhance readability.
- Ensured consistent formatting across release-complex.yml, release-simplified.yml, and release.yml.
This commit is contained in:
scawful
2025-09-28 02:34:26 -04:00
parent a7f548f12a
commit 25ba1a13fe
3 changed files with 3 additions and 3 deletions

View File

@@ -391,7 +391,7 @@ jobs:
Write-Host "Configuring CMake for Windows build..."
# Check if vcpkg is available
if (Test-Path "${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake" -and $env:VCPKG_AVAILABLE -ne "false") {
if ((Test-Path "${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake") -and ($env:VCPKG_AVAILABLE -ne "false")) {
Write-Host "Using vcpkg toolchain..."
cmake -B build `
-DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} `

View File

@@ -223,7 +223,7 @@ jobs:
Write-Host "Configuring CMake for Windows build..."
# Check if vcpkg is available
if (Test-Path "${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake" -and $env:VCPKG_AVAILABLE -ne "false") {
if ((Test-Path "${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake") -and ($env:VCPKG_AVAILABLE -ne "false")) {
Write-Host "Using vcpkg toolchain..."
cmake -B build `
-DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} `

View File

@@ -223,7 +223,7 @@ jobs:
Write-Host "Configuring CMake for Windows build..."
# Check if vcpkg is available
if (Test-Path "${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake" -and $env:VCPKG_AVAILABLE -ne "false") {
if ((Test-Path "${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake") -and ($env:VCPKG_AVAILABLE -ne "false")) {
Write-Host "Using vcpkg toolchain..."
cmake -B build `
-DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} `