Skip to content

Commit

Permalink
Pull the Go version from go.mod during builds (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
kgaughan authored Jun 21, 2023
1 parent 73917e5 commit 2eac6a2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
check-latest: true
cache: true

- name: Build
run: make
- name: Build
run: make
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ jobs:

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
check-latest: true
cache: true

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
Expand Down

0 comments on commit 2eac6a2

Please sign in to comment.