mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-08-23 22:46:59 +00:00
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
21 lines
683 B
YAML
21 lines
683 B
YAML
name: Setup caches
|
|
|
|
description: Setup caches for go modules and build cache.
|
|
|
|
inputs:
|
|
build-cache-key:
|
|
description: build cache prefix
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
|
with:
|
|
path: ~/go/pkg/mod
|
|
key: ${{ runner.os }}-go-pkg-mod-${{ hashFiles('**/go.sum') }}-${{ hashFiles('Makefile') }}
|
|
- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
|
if: ${{ inputs.build-cache-key }}
|
|
with:
|
|
path: ~/.cache/go-build
|
|
key: ${{ runner.os }}-build-cache-${{ inputs.build-cache-key }}-${{ hashFiles('**/go.sum') }}-${{ hashFiles('Makefile') }}
|