mirror of
https://github.com/tale/headplane.git
synced 2026-07-26 07:48:14 +00:00
chore: cache go build deps
This commit is contained in:
@@ -31,10 +31,12 @@ jobs:
|
||||
- name: Setup Mise
|
||||
uses: jdx/mise-action@v2
|
||||
|
||||
- name: Get pnpm store directory
|
||||
- name: Set caching paths
|
||||
shell: bash
|
||||
run: |
|
||||
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
|
||||
echo "GO_CACHE=$(go env GOCACHE)" >> $GITHUB_ENV
|
||||
echo "GO_MODCACHE=$(go env GOMODCACHE)" >> $GITHUB_ENV
|
||||
|
||||
- uses: actions/cache@v4
|
||||
name: Setup pnpm cache
|
||||
@@ -44,6 +46,14 @@ jobs:
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pnpm-store-
|
||||
|
||||
- name: Setup Go cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
${{ env.GO_CACHE }}
|
||||
${{ env.GO_MODCACHE }}
|
||||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.mod', '**/go.sum') }}
|
||||
|
||||
- name: CI pipeline
|
||||
run: mise run ci
|
||||
|
||||
|
||||
Reference in New Issue
Block a user