chore(ci): use make build for releasing the artifact

This commit is contained in:
balanza
2026-06-14 13:04:28 +02:00
committed by Alessio Biancalana
parent 3d68de95de
commit 37949df10e
2 changed files with 6 additions and 4 deletions
+3 -2
View File
@@ -27,11 +27,12 @@ jobs:
- name: Build
env:
CGO_ENABLED: "0"
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
run: |
go build -o distrobox-${{ matrix.goos }}-${{ matrix.goarch }} ./cmd/distrobox
mkdir -p ./bin
make build
mv ./bin/distrobox distrobox-${{ matrix.goos }}-${{ matrix.goarch }}
- uses: actions/upload-artifact@v7
with:
+3 -2
View File
@@ -1,5 +1,6 @@
GO_BUILD_ENV := CGO_ENABLED=0 GOOS=linux
VERSION := $(shell git describe --tags --always 2>/dev/null || echo "dev")
GOOS ?= $(shell go env GOOS)
GO_BUILD_ENV := CGO_ENABLED=0 GOOS=$(GOOS)
VERSION ?= $(shell git describe --tags --always 2>/dev/null || echo "dev")
LDFLAGS := -ldflags "-X github.com/89luca89/distrobox/pkg/version.Version=$(VERSION)"
.PHONY: build