From 07308747b17c7ecc543674eaa4585a83f189ecf6 Mon Sep 17 00:00:00 2001 From: yair Date: Wed, 27 Dec 2023 17:27:33 +0200 Subject: [PATCH] testing withouts deps --- .github/workflows/release.yml | 5 +++++ .goreleaser.yaml | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a355d3c..db62918 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -43,6 +43,11 @@ jobs: go-version: 1.21 cache: true + - name: OSXCross for CGO Support + run: | + wget -P ~ https://musl.cc/aarch64-linux-musl-cross.tgz + tar -xvf ~/aarch64-linux-musl-cross.tgz -C ~ + - name: Run GoReleaser uses: goreleaser/goreleaser-action@v3 with: diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 279c5a3..e968b62 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -9,6 +9,16 @@ builds: - linux goarch: - amd64 +- id: arm + ldflags: + - -extldflags=-static + env: + - CGO_ENABLED=1 + - CC=~/aarch64-linux-musl-cross/bin/aarch64-linux-musl-gcc + binary: "{{ .ProjectName }}" + goos: + - linux + goarch: - arm64 dockers: - image_templates: