Files
stereomonk 01f6790e8b chore: update workflows and tooling
- update docker actions version
- ghcr login username is repository_owner now
- docker build/push via action now
- add golangci-lint config
- fix Makefile typo
2026-07-03 14:40:33 +03:00

27 lines
698 B
Makefile

VERSION := $(shell git describe --tags --always)
build-linux:
mkdir -p dist
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \
-trimpath \
-ldflags="-s -w -X main.Version=$(VERSION)" \
-o dist/copypasta-linux-amd64
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build \
-trimpath \
-ldflags="-s -w -X main.Version=$(VERSION)" \
-o dist/copypasta-linux-arm64
build-windows:
mkdir -p dist
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build \
-trimpath \
-ldflags="-s -w -X main.Version=$(VERSION)" \
-o dist/copypasta-win-amd64.exe
CGO_ENABLED=0 GOOS=windows GOARCH=arm64 go build \
-trimpath \
-ldflags="-s -w -X main.Version=$(VERSION)" \
-o dist/copypasta-win-arm64.exe