Skip to content

Commit

Permalink
Do not UPX windows and darwin/arm64 binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
maddie committed Apr 23, 2021
1 parent fd5905b commit 99c0446
Showing 1 changed file with 23 additions and 14 deletions.
37 changes: 23 additions & 14 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ before:
- go mod download
builds:
- main: ./main.go
id: upx
env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags:
- -w -s -X "librespeed-cli/defs.ProgName={{ .ProjectName }}" -X "librespeed-cli/defs.ProgVersion=v{{ .Version }}" -X "librespeed-cli/defs.BuildDate={{ .Date }}"
goos:
- windows
- linux
- darwin
- freebsd
Expand All @@ -35,8 +35,30 @@ builds:
ignore:
- goos: darwin
goarch: 386
- goos: darwin
goarch: arm64
hooks:
post: ./upx.sh -9 "{{ .Path }}"
- main: ./main.go
id: no-upx
env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags:
- -w -s -X "librespeed-cli/defs.ProgName={{ .ProjectName }}" -X "librespeed-cli/defs.ProgVersion=v{{ .Version }}" -X "librespeed-cli/defs.BuildDate={{ .Date }}"
goos:
- windows
- darwin
goarch:
- 386
- amd64
- arm64
ignore:
- goos: darwin
goarch: 386
- goos: darwin
goarch: amd64
archives:
- format_overrides:
- goos: windows
Expand All @@ -48,19 +70,6 @@ checksum:
changelog:
skip: false
sort: asc
brews:
- github:
owner: librespeed
name: homebrew-tap
commit_author:
name: "Maddie Zhan"
email: maddie.zhan@gmail.com
folder: Formula
homepage: "https://github.com/librespeed/speedtest-cli"
description: "Command-line client for LibreSpeed"
skip_upload: true
custom_block: |
head "https://github.com/librespeed/speedtest-cli.git"
release:
github:
owner: librespeed
Expand Down

0 comments on commit 99c0446

Please # to comment.