Skip to content

Commit

Permalink
Merge pull request #18 from moricho/updatte-goreleaser-config
Browse files Browse the repository at this point in the history
Update goreleaser config
  • Loading branch information
moricho committed Mar 13, 2023
2 parents 7b57941 + d7ee0c1 commit 6f63ef8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: set up Go environment
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.20
- name: check out
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: cache
uses: actions/cache@v2.1.0
with:
Expand All @@ -22,13 +22,13 @@ jobs:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: build
run: go build ./cmd/tparallel/main.go
test:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: test
run: go test -v ./...
19 changes: 10 additions & 9 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
project_name: tparallel
env:
- GO111MODULE=on
before:
hooks:
- go mod tidy
Expand All @@ -14,13 +12,16 @@ builds:
env:
- CGO_ENABLED=0
archives:
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
replacements:
darwin: darwin
linux: linux
windows: windows
386: i386
amd64: x86_64
- name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- if eq .Os "freebsd" }}FreeBSD
{{- else }}{{ title .Os }}{{ end }}_
{{- if eq .Arch "amd64" }}64bit
{{- else if eq .Arch "386" }}32bit
{{- else if eq .Arch "arm64" }}ARM64
{{- else if eq .Arch "riscv64" }}RISCV
{{- else }}{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ end }}
format_overrides:
- goos: windows
format: zip
Expand Down

0 comments on commit 6f63ef8

Please sign in to comment.