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:
2
.github/workflows/release-complex.yml
vendored
2
.github/workflows/release-complex.yml
vendored
@@ -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 }} `
|
||||
|
||||
2
.github/workflows/release-simplified.yml
vendored
2
.github/workflows/release-simplified.yml
vendored
@@ -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 }} `
|
||||
|
||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -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 }} `
|
||||
|
||||
Reference in New Issue
Block a user