From d006ba504fc0dbeb5df49e886f8fe339ebf6db68 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 16 Aug 2023 14:07:18 +0530 Subject: [PATCH] Use a separate cache for the job that builds static kittens --- .github/workflows/ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 990c04c69..6b333004e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -88,6 +88,17 @@ jobs: uses: actions/setup-go@v4 with: go-version-file: go.mod + cache: false + + - name: Cache Go build artifacts separately + uses: actions/cache@v3 + with: + path: | + ~/.cache/go-build + ~/go/pkg/mod + key: ${{ runner.os }}-golang-static-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-golang-static- - name: Install build-only deps run: python -m pip install -r docs/requirements.txt ruff mypy types-requests types-docutils