add cache

This commit is contained in:
Guilhem Lettron 2022-06-23 16:40:33 +02:00 committed by GitHub
parent 19341b3cf6
commit 31e2c6f236
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,6 +20,16 @@ jobs:
with: with:
go-version: 1.18 go-version: 1.18
- name: Cache
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Build - name: Build
run: make build run: make build