go build cache needs go verision in key

This commit is contained in:
Christian Mouchet
2022-05-17 15:08:31 +02:00
committed by Jean-Philippe Bossuat
parent cf39d41a87
commit 7b0c9e3b75

View File

@@ -47,9 +47,9 @@ jobs:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}
key: ${{ runner.os }}-go-${{ matrix.go }}-build-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-build-
${{ runner.os }}-go-${{ matrix.go }}-build-
- name: Build
run: go build ./...