From e7e2ad800ce85f719f4fe5d780b0d57959dbf2de Mon Sep 17 00:00:00 2001 From: Pulkit Kathuria Date: Wed, 26 Jun 2024 14:46:56 +0900 Subject: [PATCH] (fix) arm --- .github/workflows/release.yml | 5 +++++ .goreleaser.yaml | 16 ++++++++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a3aed38..7171403 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,6 +18,11 @@ jobs: with: version: 'mod' + - name: Install cross compilation dependencies + run: | + sudo apt-get update + sudo apt-get install -y gcc-arm-linux-gnueabi gcc-aarch64-linux-gnu + - name: Run GoReleaser uses: goreleaser/goreleaser-action@v5 with: diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 0b53bf6..9ba1f13 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -8,11 +8,23 @@ builds: - CGO_ENABLED=1 goos: - linux + # - darwin + # - windows + # - freebsd goarch: - # - amd64 + - amd64 - arm64 + - arm ignore: - - goos: linux + - goos: windows + goarch: arm64 + - goos: freebsd + goarch: arm64 + - goos: windows + goarch: arm + - goos: freebsd + goarch: arm + - goos: darwin goarch: arm archives: -