mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-07 05:42:46 +08:00
feat: build with specifying target os and arch
This commit is contained in:
6
Makefile
6
Makefile
@@ -1,5 +1,9 @@
|
||||
SHELL=/usr/bin/env bash
|
||||
|
||||
MACOS_MIN := 11.0
|
||||
TARGET_OS := darwin
|
||||
TARGET_ARCH := amd64
|
||||
|
||||
.DEFAULT_GOAL=help
|
||||
|
||||
.PHONY: test
|
||||
@@ -17,7 +21,7 @@ bump: ## bump hrp version, e.g. make bump version=4.0.0
|
||||
build: ## build hrp cli tool
|
||||
@echo "[info] build hrp cli tool"
|
||||
go mod tidy
|
||||
go build -ldflags "\
|
||||
GOOS=${TARGET_OS} GOARCH=${TARGET_ARCH} go build -ldflags "\
|
||||
-s -w \
|
||||
-X 'github.com/httprunner/httprunner/v5/internal/version.GitCommit=$(shell git rev-parse HEAD)' \
|
||||
-X 'github.com/httprunner/httprunner/v5/internal/version.GitBranch=$(shell git rev-parse --abbrev-ref HEAD)' \
|
||||
|
||||
@@ -1 +1 @@
|
||||
v5.0.0-beta-2504211439
|
||||
v5.0.0-beta-2504211518
|
||||
|
||||
Reference in New Issue
Block a user