From da4057cb71834463172dbdab166b54063b2d0c4c Mon Sep 17 00:00:00 2001 From: scawful Date: Sun, 28 Sep 2025 00:02:29 -0400 Subject: [PATCH] Improve Windows build setup in GitHub Actions workflow - Enhanced the installation process for build tools and dependencies using Chocolatey, with error handling for individual package installations. - Added verification steps to confirm successful installation of CMake, Ninja, Git, and Python3. - Updated environment setup to ensure a minimal build configuration and improved user feedback during the setup process. --- .github/workflows/release.yml | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 18689c50..5c9783c9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -364,21 +364,33 @@ jobs: # Install basic build tools and dependencies Write-Host "Installing build tools and dependencies..." - choco install -y cmake ninja git + try { + choco install -y cmake ninja git python3 + Write-Host "Successfully installed build tools via Chocolatey" + } catch { + Write-Host "Chocolatey installation failed, trying individual packages..." + choco install -y cmake || Write-Host "CMake installation failed" + choco install -y ninja || Write-Host "Ninja installation failed" + choco install -y git || Write-Host "Git installation failed" + choco install -y python3 || Write-Host "Python3 installation failed" + } - # Install some basic libraries that might be needed for minimal build - Write-Host "Installing basic libraries..." - choco install -y vcpkg --source=chocolatey 2>$null || Write-Host "vcpkg not available via chocolatey, continuing..." - - # Try to install some basic dependencies manually + # Set up basic development environment Write-Host "Setting up basic development environment..." $env:Path += ";C:\Program Files\Git\bin" + # Verify installations + Write-Host "Verifying installations..." + cmake --version + ninja --version + git --version + # Set environment variable to indicate minimal build echo "YAZE_MINIMAL_BUILD=ON" >> $env:GITHUB_ENV echo "VCPKG_AVAILABLE=false" >> $env:GITHUB_ENV Write-Host "Manual dependency installation completed" + Write-Host "Build will proceed with minimal configuration (no vcpkg dependencies)" # Set vcpkg availability flag when vcpkg succeeds - name: Set vcpkg availability flag