Skip to content

Commit

Permalink
Split linux-amd64 and linux-arm64 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mmizutani committed Oct 2, 2023
1 parent 050891a commit dce9a96
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .goreleaser/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ before:
- go mod tidy
builds:
-
id: tbls-linux
id: tbls-linux-amd64
flags:
- -a
- -tags
Expand All @@ -21,6 +21,25 @@ builds:
- linux
goarch:
- amd64
-
id: tbls-linux-arm64
flags:
- -a
- -tags
- netgo
- -installsuffix
- netgo
ldflags:
- -s -w -X github.com/k1LoW/tbls.version={{.Version}} -X github.com/k1LoW/tbls.commit={{.FullCommit}} -X github.com/k1LoW/tbls.date={{.Date}} -X github.com/k1LoW/tbls/version.Version={{.Version}}
- -linkmode external
- -extldflags '-static'
env:
- CGO_ENABLED=1
- CC=aarch64-linux-gnu-gcc
- CXX=aarch64-linux-gnu-g++
goos:
- linux
goarch:
- arm64
archives:
-
Expand Down

0 comments on commit dce9a96

Please sign in to comment.