mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-04-09 20:27:25 +00:00
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@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
|
|
with:
|
|
path: ~/go/pkg/mod
|
|
key: ${{ runner.os }}-go-pkg-mod-${{ hashFiles('**/go.sum') }}-${{ hashFiles('Makefile') }}
|
|
- uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
|
|
if: ${{ inputs.build-cache-key }}
|
|
with:
|
|
path: ~/.cache/go-build
|
|
key: ${{ runner.os }}-build-cache-${{ inputs.build-cache-key }}-${{ hashFiles('**/go.sum') }}-${{ hashFiles('Makefile') }}
|