diff --git a/.goreleaser/linux.yml b/.goreleaser/linux.yml index 161ba87a..c714d4d3 100644 --- a/.goreleaser/linux.yml +++ b/.goreleaser/linux.yml @@ -4,7 +4,7 @@ before: - go mod tidy builds: - - id: tbls-linux + id: tbls-linux-amd64 flags: - -a - -tags @@ -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: -