From ec2f826dec989b11e2683535d563788164b470d8 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Fri, 26 Jul 2024 12:42:38 +0100 Subject: [PATCH] goreleaser: support building on non-x86-64 host jfa-go-build-docker is now built for an arm64 host primarily, and the manually specified x86-64 (cross)compiler and pkg-config means compilation will work on it (or another architecture in future). --- .goreleaser.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index 3940e7c..13574b1 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -80,6 +80,9 @@ builds: dir: ./ env: - CGO_ENABLED=1 + - CC=x86_64-linux-gnu-gcc + - CXX=x86_64-linux-gnu-gcc + - PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig:$PKG_CONFIG_PATH flags: - -tags=tray ldflags: