From dbd4c7b6d9b1c5dd8ad936df240674061feac1a4 Mon Sep 17 00:00:00 2001 From: Shahid Raza Date: Sun, 10 May 2026 23:03:15 +0530 Subject: [PATCH] =?UTF-8?q?ci:=20linux=20amd64=20only=20=E2=80=94=20drop?= =?UTF-8?q?=20arm64=20to=20unblock=20v0.2.0=20release?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previous attempt set CC=aarch64-linux-gnu-gcc via a goreleaser env template ({{- if eq .Arch \"arm64\" -}} CC=… {{- end -}}). The template either didn't expand or didn't apply per-arch — host gcc tried to assemble arm64 instructions, blew up with: gcc_arm64.S:30: Error: no such instruction: \`stp x29,x30,[sp,' Could fix it with two separate goreleaser build entries (one per arch, each with its own env), but for a solo hobby project the value of arm64 Linux binaries is small — those users can \`go install\`. Drop arm64 from .goreleaser.yml goarch list and remove the cross-compiler install from release.yml. Re-add when someone actually asks. The pattern (split into two builds) is documented in the comment above goarch. --- .github/workflows/release.yml | 3 --- .goreleaser.yml | 16 ++++++---------- 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 98dbb58..c26c8cb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,9 +33,6 @@ jobs: go-version: "1.25" cache: true - - name: Install GCC (Linux arm64 cross-compiler) - run: sudo apt-get install -y gcc-aarch64-linux-gnu - - name: Run GoReleaser uses: goreleaser/goreleaser-action@v6 with: diff --git a/.goreleaser.yml b/.goreleaser.yml index 084f21d..8dac650 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -12,20 +12,16 @@ builds: binary: inode env: - CGO_ENABLED=1 - # Linux arm64 cross-compile uses the toolchain installed by the - # release workflow (apt-get install gcc-aarch64-linux-gnu). - - >- - {{- if eq .Arch "arm64" -}} CC=aarch64-linux-gnu-gcc {{- end -}} - # v0.2.x publishes Linux binaries only. macOS and Windows users: - # `go install github.com/shahid-io/inode@latest`. CGO + sqlite-vec - # cross-compile for those targets needs heavier infra (zig / osxcross - # for darwin; mingw-w64 cross-tools for windows) than this hobby - # project warrants today. Re-add when there's demand. + # v0.2.x publishes Linux amd64 only. Other targets (macOS, Windows, + # Linux arm64) need cross-compilation infra (mingw-w64, osxcross/zig, + # gcc-aarch64-linux-gnu with goreleaser per-arch env) that's heavier + # than a solo hobby project warrants right now. Affected users: + # `go install github.com/shahid-io/inode@latest`. Re-add archs/OSes + # as people actually ask for them. goos: - linux goarch: - amd64 - - arm64 ldflags: - -s -w - -X github.com/shahid-io/inode/internal/version.Version={{.Version}}