mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-15 14:40:13 +01:00
ci: cache go modules in race workflow
This commit is contained in:
parent
bab07a7547
commit
710094e8de
1 changed files with 10 additions and 0 deletions
10
.github/workflows/race.yml
vendored
10
.github/workflows/race.yml
vendored
|
|
@ -24,6 +24,16 @@ jobs:
|
|||
with:
|
||||
go-version: ${{ matrix.go-version }}
|
||||
|
||||
- name: Cache Go modules
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/go/pkg/mod
|
||||
~/.cache/go-build
|
||||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-go-
|
||||
|
||||
- name: Install build tools (for cgo / race detector)
|
||||
run: |
|
||||
sudo apt-get update
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue