ci: cache go modules in race workflow

pull/2131/head
kalvinparker 3 weeks ago
parent bab07a7547
commit 710094e8de

@ -24,6 +24,16 @@ jobs:
with: with:
go-version: ${{ matrix.go-version }} 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) - name: Install build tools (for cgo / race detector)
run: | run: |
sudo apt-get update sudo apt-get update

Loading…
Cancel
Save