You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2023/03/28 05:51:21 UTC

[skywalking-infra-e2e] branch main updated: Leverage the built-in cache in setup-go@v4 (#109)

This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-infra-e2e.git


The following commit(s) were added to refs/heads/main by this push:
     new 2b3aa53  Leverage the built-in cache in setup-go@v4 (#109)
2b3aa53 is described below

commit 2b3aa53dbba73909730b211d5b8065abc74b56ad
Author: kezhenxu94 <ke...@apache.org>
AuthorDate: Tue Mar 28 13:51:14 2023 +0800

    Leverage the built-in cache in setup-go@v4 (#109)
---
 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