Skip to content

Build Go binaries

Build Go binaries #5

Workflow file for this run

name: Build Go binaries
on:
workflow_dispatch:
release:
types: [published]
permissions:
contents: write
packages: write
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, windows, darwin]
goarch: [amd64]
steps:
- uses: actions/checkout@v4
- name: Go Setup
uses: actions/setup-go@v6
with:
go-version: 1.24.3
- name: Brotli Setup
run: sudo apt-get update && sudo apt-get install -y libbrotli-dev
- name: Build ncdtree
run: GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build ./cmd/ncdtree/
- name: Build nj
run: GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build ./cmd/nj/