ci: cache go modules in race workflow

This commit is contained in:
kalvinparker 2025-11-14 15:24:04 +00:00
parent bab07a7547
commit 710094e8de

View file

@ -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