Use a separate cache for the job that builds static kittens

This commit is contained in:
Kovid Goyal 2023-08-16 14:07:18 +05:30
parent ebbb8e4a09
commit d006ba504f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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