mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 11:03:34 +00:00
ci: Add go build/module caching
This commit is contained in:
@@ -27,6 +27,16 @@ jobs:
|
|||||||
- name: Reset changes in mise.lock after fresh mise install
|
- name: Reset changes in mise.lock after fresh mise install
|
||||||
run: git checkout mise.lock
|
run: git checkout mise.lock
|
||||||
|
|
||||||
|
- name: Cache Go build and module cache
|
||||||
|
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/Library/Caches/go-build
|
||||||
|
~/go/pkg/mod
|
||||||
|
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-go-
|
||||||
|
|
||||||
- name: Run GoReleaser snapshot
|
- name: Run GoReleaser snapshot
|
||||||
run: goreleaser release --snapshot --clean
|
run: goreleaser release --snapshot --clean
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user