From 4cd384b69cb806ac042bb3dcc5154b212b13f8e0 Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Sat, 10 Sep 2022 10:39:57 +0200 Subject: [PATCH] Add ARM builds to goreleaser config --- .goreleaser.yml | 36 ++++++++++++++++++++++++++++++++---- 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 7895662..808ba1f 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -5,7 +5,7 @@ before: # You may remove this if you don't use go modules. - go mod tidy builds: - - id: "cli" + - id: linux-amd64 main: ./cmd/cacertocsp binary: cacert-goocsp env: @@ -14,10 +14,38 @@ builds: - linux goarch: - 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: - - replacements: - linux: Linux - amd64: x86_64 + - id: cacert-gosigner + builds: + - linux-amd64 + - linux-arm64 + - linux-armhf checksum: name_template: 'checksums.txt' snapshot: