Skip to content

Commit

Permalink
update binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
Avi-Robusta committed Jul 3, 2024
1 parent ba011aa commit eebd8a9
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,32 +31,22 @@ jobs:
${{ runner.os }}-go-
- name: Build binary (Unix)
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
run: CGO_ENABLED=0 GOOS=linux go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o kube-lineage-${{ matrix.os }}-${{ github.ref_name }} ./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
run: CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o kube-lineage-${{ matrix.os }}-${{ github.ref_name }} ./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

- name: Zip the application (Unix)
if: matrix.os == 'macos-latest' || matrix.os == 'ubuntu-latest'
run: |
zip -r kube-lineage-${{ matrix.os }}-${{ github.ref_name }}.zip kube-lineage
- name: Zip the application (Windows)
if: matrix.os == 'windows-latest'
run: |
Compress-Archive -Path kube-lineage.exe -DestinationPath kube-lineage-${{ matrix.os }}-${{ github.ref_name }}.zip -Force
- name: Upload Release Asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./kube-lineage-${{ matrix.os }}-${{ github.ref_name }}.zip
asset_name: kube-lineage-${{ matrix.os }}-${{ github.ref_name }}.zip
asset_path: ./kube-lineage-${{ matrix.os }}-${{ github.ref_name }}
asset_name: kube-lineage-${{ matrix.os }}-${{ github.ref_name }}
asset_content_type: application/octet-stream

0 comments on commit eebd8a9

Please sign in to comment.