mirror of https://github.com/goccy/go-json.git
Use build cache
This commit is contained in:
parent
35a58e5b5f
commit
9dd260fec8
|
@ -15,6 +15,16 @@ jobs:
|
||||||
go-version: ${{ matrix.go-version }}
|
go-version: ${{ matrix.go-version }}
|
||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v2
|
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
|
- name: simple test
|
||||||
run: go test -v ./ -count=1
|
run: go test -v ./ -count=1
|
||||||
- name: test with GC pressure
|
- name: test with GC pressure
|
||||||
|
|
Loading…
Reference in New Issue