Skip to content

v0.4.4

v0.4.4 #20

Workflow file for this run

name: Upload release binaries
on:
push:
tags:
- '*'
jobs:
build:
name: Build Binaries
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux]
goarch: [amd64, arm64]
include:
- goarch: amd64
cc: gcc
- goarch: arm64
cc: aarch64-linux-gnu-gcc
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: install cross compiler
run: sudo apt-get -y install gcc-aarch64-linux-gnu
- name: Build Binary
run: CGO_ENABLED=1 CC=${{ matrix.cc }} GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -ldflags="-s -w" -o ngtop-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.ext }} .
- name: Release
uses: softprops/action-gh-release@v1
with:
files: "ngtop-*"