diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c95d38c..78a4e39 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -227,6 +227,9 @@ jobs: - name: Install GTK4 and dependencies run: . .\.github\workflows\install_vcpkg.ps1 shell: pwsh + env: + VCPKG_DISABLE_METRICS: 1 + if: ${{ success() }} - name: Configure pkg-config paths run: | diff --git a/.github/workflows/install_vcpkg.ps1 b/.github/workflows/install_vcpkg.ps1 index d5ff3c6..005d0f7 100644 --- a/.github/workflows/install_vcpkg.ps1 +++ b/.github/workflows/install_vcpkg.ps1 @@ -12,11 +12,21 @@ if (Test-Path $pkgConfigPath) { exit 1 } -# Install other dependencies -vcpkg install gobject-2.0:$env:VCPKG_TRIPLET -vcpkg install glib:$env:VCPKG_TRIPLET -vcpkg install gtk4:$env:VCPKG_TRIPLET -vcpkg install libadwaita:$env:VCPKG_TRIPLET +# Install dependencies with error checking +$packages = @( + "glib", + "gtk4", + "libadwaita" +) + +foreach ($package in $packages) { + Write-Host "Installing $package..." + vcpkg install "$package`:$env:VCPKG_TRIPLET" + if ($LASTEXITCODE -ne 0) { + Write-Host "Error: Failed to install $package" + exit 1 + } +} # Create pkg-config wrapper script to handle Windows paths $wrapperContent = @"