From 9dd260fec811efdb06f828f723850fd3d0f1dee4 Mon Sep 17 00:00:00 2001 From: Masaaki Goshima Date: Mon, 11 Jan 2021 01:03:30 +0900 Subject: [PATCH] Use build cache --- .github/workflows/go.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 60d0aa4..e76fc2e 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -15,6 +15,16 @@ jobs: go-version: ${{ matrix.go-version }} - name: checkout uses: actions/checkout@v2 + - uses: actions/cache@v2 + with: + path: | + ~/go/pkg/mod + ~/.cache/go-build + ~/Library/Caches/go-build + '%LocalAppData%\go-build' + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- - name: simple test run: go test -v ./ -count=1 - name: test with GC pressure