From 92eb9c7145a9b39ec8c5620f48e244d21f3b2122 Mon Sep 17 00:00:00 2001 From: Djuri Baars Date: Sun, 9 Jun 2024 15:07:00 +0200 Subject: [PATCH] Cache pip packages --- .github/workflows/build_artifacts.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/build_artifacts.yaml b/.github/workflows/build_artifacts.yaml index d20778e..950ed6d 100644 --- a/.github/workflows/build_artifacts.yaml +++ b/.github/workflows/build_artifacts.yaml @@ -25,9 +25,18 @@ jobs: key: ${{ runner.os }}-buildx-${{ github.sha }} restore-keys: | ${{ runner.os }}-buildx- + - name: Cache pip packages + id: pip-cache + uses: actions/cache@v4 + with: + path: /tmp/.cachepip + key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip- - name: Run Docker Container run: | docker run --rm \ + --volume "/tmp/.cachepip/wine/drive_c/users/root/appdata/local/pip/cache" \ --volume "${{ github.workspace }}:/src/" \ batonogov/pyinstaller-windows:latest - name: Archive artifacts