This is an automated email from the ASF dual-hosted git repository. kezhenxu94 pushed a commit to branch setupgo in repository https://gitbox.apache.org/repos/asf/skywalking-infra-e2e.git
commit 1876d0da8b00d2e1079858d066e1594c3e6cce90 Author: kezhenxu94 <kezhenx...@apache.org> AuthorDate: Tue Mar 28 13:38:39 2023 +0800 Leverage the built-in cache in setup-go@v4 --- action.yaml | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/action.yaml b/action.yaml index cb81a18..c627fd2 100644 --- a/action.yaml +++ b/action.yaml @@ -35,30 +35,7 @@ runs: uses: actions/setup-go@v4 with: go-version: 1.18 - - if: runner.os == 'Linux' - uses: actions/cache@v3 - with: - path: | - ~/.cache/go-build - ~/go/pkg/mod - key: skywalking-infra-e2e-${{ runner.os }}-go-${{ hashFiles(format('{0}/{1}', github.action_path, 'go.sum')) }} - restore-keys: skywalking-infra-e2e-${{ runner.os }}-go- - - if: runner.os == 'macOS' - uses: actions/cache@v3 - with: - path: | - ~/Library/Caches/go-build - ~/go/pkg/mod - key: skywalking-infra-e2e-${{ runner.os }}-go-${{ hashFiles(format('{0}/{1}', github.action_path, 'go.sum')) }} - restore-keys: skywalking-infra-e2e-${{ runner.os }}-go- - - if: runner.os == 'Windows' - uses: actions/cache@v3 - with: - path: | - ~\AppData\Local\go-build - ~\go\pkg\mod - key: skywalking-infra-e2e-${{ runner.os }}-go-${{ hashFiles(format('{0}/{1}', github.action_path, 'go.sum')) }} - restore-keys: skywalking-infra-e2e-${{ runner.os }}-go- + cache-dependency-path: ${{ github.action_path }}/go.sum - shell: bash run: make -C $GITHUB_ACTION_PATH install DESTDIR=/usr/local/bin - name: E2E Dir Generator