Skip to content

Commit

Permalink
workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
fallais committed Apr 3, 2024
1 parent 53a34dc commit b4d7212
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.21

- name: Test
run: go test -v ./...
Expand All @@ -28,7 +28,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.21

- name: Build
run: go build -v ./...
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.21
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
Expand Down
32 changes: 28 additions & 4 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,34 @@
project_name: gocoop

env:
- GO111MODULE=on
- CGO_ENABLED=0

before:
hooks:
- go mod tidy
- go mod download

builds:
- id: "gocoop"
binary: gocoop
- id: linux-arm
binary: gocoop-linux-{{ .Arch }}
main: ./main.go
goos:
- freebsd
- windows
- linux
goarch:
- amd64
ldflags:
- "{{ .Env.LDFLAGS }}"
no_unique_dist_dir: true

- id: linux-arm64
binary: gocoop-linux-{{ .Arch }}
main: ./main.go
goos:
- linux
goarch:
- arm
- arm64
ldflags:
- "{{ .Env.LDFLAGS }}"
no_unique_dist_dir: true

0 comments on commit b4d7212

Please sign in to comment.