Fix promu config (#1119)
Rename promu no-cgo config to default promu name to avoid crossbuild problems. Signed-off-by: Ben Kochie <superq@gmail.com>
This commit is contained in:
parent
0da9d248e7
commit
7519967619
|
@ -33,7 +33,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run: make promu
|
- run: make promu
|
||||||
- run: promu --config .promu-no-cgo.yml crossbuild -v --go 1.11
|
- run: promu crossbuild -v --go 1.11
|
||||||
- run: promu --config .promu-cgo.yml crossbuild -v --go 1.11
|
- run: promu --config .promu-cgo.yml crossbuild -v --go 1.11
|
||||||
- persist_to_workspace:
|
- persist_to_workspace:
|
||||||
root: .
|
root: .
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -46,11 +46,11 @@ endif
|
||||||
|
|
||||||
# Use CGO for non-Linux builds.
|
# Use CGO for non-Linux builds.
|
||||||
ifeq ($(GOOS), linux)
|
ifeq ($(GOOS), linux)
|
||||||
PROMU_CONF ?= .promu-no-cgo.yml
|
PROMU_CONF ?= .promu.yml
|
||||||
else
|
else
|
||||||
ifndef GOOS
|
ifndef GOOS
|
||||||
ifeq ($(OS_detected), Linux)
|
ifeq ($(OS_detected), Linux)
|
||||||
PROMU_CONF ?= .promu-no-cgo.yml
|
PROMU_CONF ?= .promu.yml
|
||||||
else
|
else
|
||||||
PROMU_CONF ?= .promu-cgo.yml
|
PROMU_CONF ?= .promu-cgo.yml
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue