mirror of
https://github.com/tale/headplane.git
synced 2026-08-24 11:36:31 +00:00
chore: cache go build deps
This commit is contained in:
@@ -31,10 +31,12 @@ jobs:
|
|||||||
- name: Setup Mise
|
- name: Setup Mise
|
||||||
uses: jdx/mise-action@v2
|
uses: jdx/mise-action@v2
|
||||||
|
|
||||||
- name: Get pnpm store directory
|
- name: Set caching paths
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
|
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
|
- uses: actions/cache@v4
|
||||||
name: Setup pnpm cache
|
name: Setup pnpm cache
|
||||||
@@ -44,6 +46,14 @@ jobs:
|
|||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-pnpm-store-
|
${{ 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
|
- name: CI pipeline
|
||||||
run: mise run ci
|
run: mise run ci
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user