From e2cbeec7f4effd3686ca610cccb37fb923e9b210 Mon Sep 17 00:00:00 2001 From: Zanie Date: Mon, 12 Feb 2024 22:10:37 -0600 Subject: [PATCH] Cache Python binaries in CI on Windows --- .github/workflows/ci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 602e74247..74d85e668 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,9 +64,16 @@ jobs: run: brew install coreutils - uses: actions/setup-python@v5 with: - python-version: '3.12' + python-version: "3.12" - name: "Install pipx" run: pip install pipx + - name: Cache Python binaries + # We only cache these on Windows because it's already fast on Unix + if: ${{ matrix.os == 'windows' }} + uses: actions/cache@v4 + with: + path: bin + key: ${{ runner.os }}-py--${{ hashFiles('.python-versions') }} - name: "Install required Python versions" run: pipx run scripts/bootstrap/install.py - name: "Install Rust toolchain"