Add ARM builds to goreleaser config

This commit is contained in:
Jan Dittberner 2022-09-10 10:39:57 +02:00
parent 77b1ba4162
commit 4cd384b69c

View file

@ -5,7 +5,7 @@ before:
# You may remove this if you don't use go modules. # You may remove this if you don't use go modules.
- go mod tidy - go mod tidy
builds: builds:
- id: "cli" - id: linux-amd64
main: ./cmd/cacertocsp main: ./cmd/cacertocsp
binary: cacert-goocsp binary: cacert-goocsp
env: env:
@ -14,10 +14,38 @@ builds:
- linux - linux
goarch: goarch:
- amd64 - amd64
- id: linux-arm64
main: ./cmd/cacertocsp
binary: cacert-goocsp
goos:
- linux
goarch:
- arm64
goarm:
- "9"
env:
- CC=aarch64-linux-gnu-gcc
- CXX=aarch64-linux-gnu-g++
- PKG_CONFIG_PATH=/usr/aarch64-linux-gnu/pkgconfig
- id: linux-armhf
main: ./cmd/cacertocsp
binary: cacert-goocsp
goos:
- linux
goarch:
- arm
goarm:
- "7"
env:
- CC=arm-linux-gnueabihf-gcc
- CXX=arm-linux-gnueabihf-g++
- PKG_CONFIG_PATH=/usr/arm-linux-gnueabihf/pkgconfig
archives: archives:
- replacements: - id: cacert-gosigner
linux: Linux builds:
amd64: x86_64 - linux-amd64
- linux-arm64
- linux-armhf
checksum: checksum:
name_template: 'checksums.txt' name_template: 'checksums.txt'
snapshot: snapshot: