mirror of
https://github.com/89luca89/distrobox.git
synced 2026-08-17 16:34:42 -05:00
chore(ci): use make build for releasing the artifact
This commit is contained in:
committed by
Alessio Biancalana
parent
3d68de95de
commit
37949df10e
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user