chore: disable CGO and upgrade goreleaser
This commit is contained in:
parent
af883a4b3f
commit
b0ff432703
5 changed files with 14 additions and 9 deletions
2
.github/workflows/nightly.yml
vendored
2
.github/workflows/nightly.yml
vendored
|
|
@ -102,7 +102,7 @@ jobs:
|
|||
uses: goreleaser/goreleaser-action@v4
|
||||
with:
|
||||
version: latest
|
||||
args: --snapshot -f .goreleaser-nightly.yml --rm-dist
|
||||
args: --snapshot -f .goreleaser-nightly.yml --clean
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
|
|
|
|||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
|
@ -95,7 +95,7 @@ jobs:
|
|||
uses: goreleaser/goreleaser-action@v4
|
||||
with:
|
||||
version: latest
|
||||
args: release --rm-dist
|
||||
args: release --clean
|
||||
env:
|
||||
# use GH_TOKEN for access to evcc-io/homebrew-tap
|
||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||
|
|
|
|||
|
|
@ -26,15 +26,17 @@ builds:
|
|||
archives:
|
||||
- builds:
|
||||
- evcc
|
||||
replacements:
|
||||
darwin: macOS
|
||||
format: tar.gz
|
||||
format_overrides:
|
||||
- goos: windows
|
||||
format: zip
|
||||
files:
|
||||
- evcc.dist.yaml
|
||||
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}-{{ .Arch }}{{ if .Arm }}hf{{ end }}"
|
||||
name_template: >-
|
||||
{{ .ProjectName }}_{{ .Version }}_{{ if eq .Os "darwin" }}macOS{{ else }}{{ .Os }}{{ end }}-{{ .Arch }}{{ if .Arm }}hf{{ end }}
|
||||
|
||||
env:
|
||||
- CGO_ENABLED=0
|
||||
|
||||
universal_binaries:
|
||||
- replace: true
|
||||
|
|
|
|||
|
|
@ -27,17 +27,20 @@ builds:
|
|||
- goos: windows
|
||||
goarch: arm64
|
||||
|
||||
env:
|
||||
- CGO_ENABLED=0
|
||||
|
||||
archives:
|
||||
- builds:
|
||||
- evcc
|
||||
replacements:
|
||||
darwin: macOS
|
||||
format: tar.gz
|
||||
format_overrides:
|
||||
- goos: windows
|
||||
format: zip
|
||||
files:
|
||||
- evcc.dist.yaml
|
||||
name_template: >-
|
||||
{{ .ProjectName }}_{{ .Version }}_{{ if eq .Os "darwin" }}macOS{{ else }}{{ .Os }}{{ end }}-{{ .Arch }}{{ if .Arm }}hf{{ end }}
|
||||
|
||||
universal_binaries:
|
||||
- replace: true
|
||||
|
|
|
|||
4
Makefile
4
Makefile
|
|
@ -75,10 +75,10 @@ build::
|
|||
CGO_ENABLED=0 go build -v $(BUILD_TAGS) $(BUILD_ARGS)
|
||||
|
||||
snapshot:
|
||||
goreleaser --snapshot --skip-publish --rm-dist
|
||||
goreleaser --snapshot --skip-publish --clean
|
||||
|
||||
release::
|
||||
goreleaser --rm-dist
|
||||
goreleaser --clean
|
||||
|
||||
docker::
|
||||
@echo Version: $(VERSION) $(SHA) $(BUILD_DATE)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue