mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-30 21:42:48 -08:00
Cache go modules.
Apply Go actions cache, as described in https://markphelps.me/2019/11/speed-up-your-go-builds-with-actions-cache/ Signed-off-by: Denton Gentry <[email protected]>
This commit is contained in:
1 parent
d12add6e22
commit
e692e3866b
1 file changed
+8
@@ -25,6 +25,14 @@ jobs:
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v1
|
||||
|
||||
# https://markphelps.me/2019/11/speed-up-your-go-builds-with-actions-cache/
|
||||
- name: Restore Cache
|
||||
uses: actions/cache@preview
|
||||
id: cache
|
||||
with:
|
||||
path: ~/go/pkg/mod
|
||||
key: ${{ runner.os }}-${{ hashFiles('**/go.sum') }}
|
||||
|
||||
- name: Basic build
|
||||
run: go build ./cmd/...
|
||||
|
||||
|
||||
Reference in new issue
Block a user