Skip to content

Commit

Permalink
Add cache step.
Browse files Browse the repository at this point in the history
  • Loading branch information
googollee committed Jul 29, 2024
1 parent b5be194 commit 7bfe215
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,28 @@ jobs:
strategy:
matrix:
go:
- '1.22'
- 'stable'
- 'oldstable'
- 'current'
steps:
- uses: actions/checkout@v4
- name: Checkout the repo
uses: actions/checkout@v4

- name: Set up Go
if: ${{ matrix.go }} != 'current'
uses: actions/setup-go@v5
with:
go-version: '${{ matrix.go }}'
check-latest: true
cache-dependency-path: ./go.sum

- name: Set up Go
if: ${{ matrix.go }} != 'current'
uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
check-latest: true
cache-dependency-path: ./go.sum

- name: Build
run: go build -v ./...
Expand Down

0 comments on commit 7bfe215

Please sign in to comment.