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

@ -19,6 +19,16 @@ jobs:
uses: actions/setup-go@v3
with:
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
run: make build