From c85e9d232d3da0916d1157ef6759f5f844e589b0 Mon Sep 17 00:00:00 2001 From: Andy Pan <panjf2000@gmail.com> Date: Mon, 5 Feb 2024 17:49:42 +0800 Subject: [PATCH] chore: update GitHub actions cache --- .github/workflows/test.yml | 3 ++- .github/workflows/test_gc_opt.yml | 3 ++- .github/workflows/test_poll_opt.yml | 3 ++- .github/workflows/test_poll_opt_gc_opt.yml | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 183d90273..b5d62240f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -92,9 +92,10 @@ jobs: path: | ${{ steps.go-env.outputs.GO_CACHE }} ~/go/pkg/mod + ~/.cache/go-build key: ${{ runner.os }}-${{ matrix.go }}-go-ci-${{ hashFiles('**/go.sum') }} restore-keys: | - ${{ runner.os }}-${{ matrix.go }}-go-ci + ${{ runner.os }}-${{ matrix.go }}-go-ci- - name: Run unit tests for packages run: go test $(go list ./... | tail -n +2) diff --git a/.github/workflows/test_gc_opt.yml b/.github/workflows/test_gc_opt.yml index 7cc56aefc..a8a3daa9a 100644 --- a/.github/workflows/test_gc_opt.yml +++ b/.github/workflows/test_gc_opt.yml @@ -92,9 +92,10 @@ jobs: path: | ${{ steps.go-env.outputs.GO_CACHE }} ~/go/pkg/mod + ~/.cache/go-build key: ${{ runner.os }}-${{ matrix.go }}-go-ci-${{ hashFiles('**/go.sum') }} restore-keys: | - ${{ runner.os }}-${{ matrix.go }}-go-ci + ${{ runner.os }}-${{ matrix.go }}-go-ci- - name: Run unit tests for packages run: go test $(go list ./... | tail -n +2) diff --git a/.github/workflows/test_poll_opt.yml b/.github/workflows/test_poll_opt.yml index cb357fffe..1def115fa 100644 --- a/.github/workflows/test_poll_opt.yml +++ b/.github/workflows/test_poll_opt.yml @@ -88,9 +88,10 @@ jobs: path: | ${{ steps.go-env.outputs.GO_CACHE }} ~/go/pkg/mod + ~/.cache/go-build key: ${{ runner.os }}-${{ matrix.go }}-go-ci-${{ hashFiles('**/go.sum') }} restore-keys: | - ${{ runner.os }}-${{ matrix.go }}-go-ci + ${{ runner.os }}-${{ matrix.go }}-go-ci- - name: Run unit tests for packages run: go test $(go list ./... | tail -n +2) diff --git a/.github/workflows/test_poll_opt_gc_opt.yml b/.github/workflows/test_poll_opt_gc_opt.yml index 107e3de7b..13a761dbb 100644 --- a/.github/workflows/test_poll_opt_gc_opt.yml +++ b/.github/workflows/test_poll_opt_gc_opt.yml @@ -88,9 +88,10 @@ jobs: path: | ${{ steps.go-env.outputs.GO_CACHE }} ~/go/pkg/mod + ~/.cache/go-build key: ${{ runner.os }}-${{ matrix.go }}-go-ci-${{ hashFiles('**/go.sum') }} restore-keys: | - ${{ runner.os }}-${{ matrix.go }}-go-ci + ${{ runner.os }}-${{ matrix.go }}-go-ci- - name: Run unit tests for packages run: go test $(go list ./... | tail -n +2)