Skip to content

v0.0.5

v0.0.5 #4

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Build Binaries
on:
release:
tags:
- 'v*'
types: [created, released, published]
jobs:
build:
runs-on: ubuntu-latest # Base OS for all builds
strategy:
matrix:
# build and publish in parallel: linux/386, linux/amd64, linux/arm64, windows/386, windows/amd64, darwin/amd64, darwin/arm64
goos: [linux, windows, darwin]
goarch: ["386", amd64, arm64]
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22' # Or your desired Go version
- name: Build Binaries
env:
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.goarch }}
run: go build -tags netgo -a -v -o dist/${{ matrix.os }}-${{ matrix.goarch }}/napp .
- name: Create Release Artifacts
uses: actions/upload-artifact@v3
with:
name: binaries
path: dist/