Skip to content

Commit b774696

Browse files
authored
chore(ci): use lynx cache (#160)
1 parent 8923c1d commit b774696

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/actions/setup-go/action.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ runs:
2121

2222
- name: Go cache
2323
uses: actions/[email protected]
24+
if: runner.environment == 'github-hosted'
2425
with:
2526
key: setup-go-${{ runner.os }}-${{ steps.install-go.outputs.go-version }}-${{ inputs.cache-name }}-${{ hashFiles('**/go.sum') }}
2627
restore-keys: |
@@ -30,3 +31,16 @@ runs:
3031
~/.cache/go-build
3132
~/Library/Caches/go-build
3233
~/AppData/Local/go-build
34+
35+
- name: Go cache
36+
uses: lynx-infra/cache@5c6160a6a4c7fca80a2f3057bb9dfc9513fcb732
37+
if: runner.environment == 'self-hosted'
38+
with:
39+
key: setup-go-SH-1-${{ runner.os }}-${{ steps.install-go.outputs.go-version }}-${{ inputs.cache-name }}-${{ hashFiles('**/go.sum') }}
40+
restore-keys: |
41+
setup-go-SH-1-${{ runner.os }}-${{ steps.install-go.outputs.go-version }}-${{ inputs.cache-name }}-${{ hashFiles('**/go.sum') }}
42+
path: |
43+
~/go/pkg/mod
44+
~/.cache/go-build
45+
~/Library/Caches/go-build
46+
~/AppData/Local/go-build

0 commit comments

Comments
 (0)