From e9e823c2e730ab4f96df32ad0a4d4a2d75d30a7a Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Wed, 12 Mar 2025 06:48:14 +0100 Subject: [PATCH] build: try to use actions/cache@v4 for pip caching To work around https://github.com/actions/setup-python/issues/1050 --- .github/workflows/build.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9ac81af..dd92699 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -139,14 +139,21 @@ jobs: id: python with: python-version: '3.13' - cache: 'pip' - cache-dependency-path: 'requirements.txt' # Note that ARM64 prior to Win11 requires x86, but this will install x64 architecture: 'x64' # Avoid it setting CMake/pkg-config variables # https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#environment-variables update-environment: false + # Work around https://github.com/actions/setup-python/issues/1050 + - name: Cache pip dependencies + uses: actions/cache@v4 + with: + path: ~\AppData\Local\pip\Cache + key: ${{ runner.os }}-${{ runner.arch }}-pip-${{ hashFiles('requirements.txt') }} + restore-keys: | + ${{ runner.os }}-${{ runner.arch }}-pip- + - name: Install deps env: PIP_DISABLE_PIP_VERSION_CHECK: 1