From ba011aaf6c0eead374d56a125b792dd92b1d5614 Mon Sep 17 00:00:00 2001 From: "avi@robusta.dev" Date: Tue, 2 Jul 2024 19:34:27 +0300 Subject: [PATCH] fixing arm build Working version --- .github/workflows/release.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 2167b2a..792bdae 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -30,9 +30,13 @@ jobs: restore-keys: | ${{ runner.os }}-go- - name: Build binary (Unix) - if: matrix.os == 'macos-latest' || matrix.os == 'ubuntu-latest' + if: matrix.os == 'ubuntu-latest' run: CGO_ENABLED=0 GOOS=linux go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o kube-lineage ./cmd/kube-lineage + - name: Build binary (Arm) + if: matrix.os == 'macos-latest' + run: CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o kube-lineage ./cmd/kube-lineage + - name: Build binary (Windows) if: matrix.os == 'windows-latest' run: CGO_ENABLED=0 GOOS=windows go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o kube-lineage.exe ./cmd/kube-lineage