From 7a7acb71bd0ba1d8b3b3c4a0c4e95c98939d1f85 Mon Sep 17 00:00:00 2001 From: scawful Date: Sun, 28 Sep 2025 22:08:52 -0400 Subject: [PATCH] Enhance GitHub Actions workflow by adding vcpkg download cache preparation for Windows and macOS - Introduced steps to prepare a download cache for vcpkg on both Windows and macOS, improving build efficiency and reducing download times. - Ensured that the cache directories are created conditionally based on the operating system, maintaining compatibility across platforms. --- .github/workflows/release.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8834476e..51df323f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -184,6 +184,13 @@ jobs: brew install pkg-config ninja cmake # ---------- vcpkg (Windows & macOS) ---------- + - name: Prepare vcpkg download cache (Windows) + if: runner.os == 'Windows' + shell: pwsh + run: | + $dl = Join-Path $env:GITHUB_WORKSPACE 'vcpkg_downloads' + New-Item -ItemType Directory -Force -Path $dl | Out-Null + - name: Set up vcpkg (Windows) id: vcpkg_win if: runner.os == 'Windows' @@ -216,6 +223,10 @@ jobs: echo "VCPKG_AVAILABLE=false" >> $env:GITHUB_ENV echo "YAZE_MINIMAL_BUILD=ON" >> $env:GITHUB_ENV + - name: Prepare vcpkg download cache (macOS) + if: runner.os == 'macOS' + run: mkdir -p "${{ github.workspace }}/vcpkg_downloads" + - name: Set up vcpkg (macOS) if: runner.os == 'macOS' uses: lukka/run-vcpkg@v11