From 300ffa97d610530d03f66228f66248916412ef35 Mon Sep 17 00:00:00 2001 From: Andras Banki-Horvath Date: Thu, 13 Mar 2025 11:20:55 -0500 Subject: [PATCH] github: update setup-go remove cache The setup-go@v5 has built in caching support. --- .github/workflows/main.yml | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 45cc22a6d..6ffe7c574 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -74,19 +74,8 @@ jobs: with: fetch-depth: 0 - - name: go cache - uses: actions/cache@v4 - with: - path: /home/runner/work/go - key: lnd-${{ runner.os }}-go-${{ env.GO_VERSION }}-${{ github.job }}-${{ hashFiles('**/go.sum') }} - restore-keys: | - loop-${{ runner.os }}-go-${{ env.GO_VERSION }}-${{ github.job }}-${{ hashFiles('**/go.sum') }} - loop-${{ runner.os }}-go-${{ env.GO_VERSION }}-${{ github.job }}- - loop-${{ runner.os }}-go-${{ env.GO_VERSION }}- - loop-${{ runner.os }}-go- - - name: setup go ${{ env.GO_VERSION }} - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: '~${{ env.GO_VERSION }}' @@ -106,19 +95,8 @@ jobs: - name: git checkout uses: actions/checkout@v2 - - name: go cache - uses: actions/cache@v4 - with: - path: /home/runner/work/go - key: lnd-${{ runner.os }}-go-${{ env.GO_VERSION }}-${{ github.job }}-${{ hashFiles('**/go.sum') }} - restore-keys: | - loop-${{ runner.os }}-go-${{ env.GO_VERSION }}-${{ github.job }}-${{ hashFiles('**/go.sum') }} - loop-${{ runner.os }}-go-${{ env.GO_VERSION }}-${{ github.job }}- - loop-${{ runner.os }}-go-${{ env.GO_VERSION }}- - loop-${{ runner.os }}-go- - - name: setup go ${{ env.GO_VERSION }} - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: '~${{ env.GO_VERSION }}'