From 25ba1a13fea3a29f15bf74dca5d86bcb9ecbf472 Mon Sep 17 00:00:00 2001 From: scawful Date: Sun, 28 Sep 2025 02:34:26 -0400 Subject: [PATCH] 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. --- .github/workflows/release-complex.yml | 2 +- .github/workflows/release-simplified.yml | 2 +- .github/workflows/release.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-complex.yml b/.github/workflows/release-complex.yml index c05e2004..6cfaa697 100644 --- a/.github/workflows/release-complex.yml +++ b/.github/workflows/release-complex.yml @@ -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 }} ` diff --git a/.github/workflows/release-simplified.yml b/.github/workflows/release-simplified.yml index 8e6c4161..3c2509e3 100644 --- a/.github/workflows/release-simplified.yml +++ b/.github/workflows/release-simplified.yml @@ -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 }} ` diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0a8fc157..edc33973 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }} `