Skip to content

Commit

Permalink
fixing arm build
Browse files Browse the repository at this point in the history
Working version
  • Loading branch information
Avi-Robusta committed Jul 2, 2024
1 parent 4d8459f commit ba011aa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ba011aa

Please sign in to comment.