Skip to content

Commit

Permalink
GHA: Drops actions/cache and use actions/setup-go's cache: true
Browse files Browse the repository at this point in the history
  • Loading branch information
tisba committed Jan 14, 2023
1 parent 12b3b5c commit fbed97f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,9 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
cache: true
go-version-file: "go.mod"

- uses: actions/cache@v3
with:
path: |
~/go/pkg/mod
~/go/src
/home/runner/go/cache
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Print Go Version
run: go version

Expand Down
11 changes: 1 addition & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,9 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
cache: true
go-version-file: "go.mod"

- uses: actions/cache@v3
with:
path: |
~/go/pkg/mod
~/go/src
/home/runner/go/cache
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Print Go Version
run: go version

Expand Down

0 comments on commit fbed97f

Please sign in to comment.