mirror of
https://github.com/gmemstr/sliproad.git
synced 2024-09-20 00:21:15 +01:00
Fine-tuning UPX and CircleCI configuration.
This commit is contained in:
parent
750b85c261
commit
a5494c8811
|
@ -25,7 +25,7 @@ jobs:
|
||||||
- run:
|
- run:
|
||||||
command: make dist
|
command: make dist
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: /go/src/github.com/gmemstr/build
|
path: build
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: go-mod-{{ checksum "go.sum" }}-v1
|
key: go-mod-{{ checksum "go.sum" }}-v1
|
||||||
paths:
|
paths:
|
||||||
|
|
9
Makefile
9
Makefile
|
@ -8,11 +8,11 @@ pi:
|
||||||
|
|
||||||
small:
|
small:
|
||||||
go build -ldflags="-s -w"
|
go build -ldflags="-s -w"
|
||||||
upx --brute nas
|
upx --brute nas -9 --no-progress
|
||||||
|
|
||||||
small_pi:
|
small_pi:
|
||||||
env GOOS=linux GOARCH=arm GOARM=5 go build -o nas-arm -ldflags="-s -w"
|
env GOOS=linux GOARCH=arm GOARM=5 go build -o nas-arm -ldflags="-s -w"
|
||||||
upx --brute nas-arm
|
upx --brute nas-arm -9 --no-progress
|
||||||
|
|
||||||
run:
|
run:
|
||||||
go run webserver.go
|
go run webserver.go
|
||||||
|
@ -20,6 +20,9 @@ run:
|
||||||
test:
|
test:
|
||||||
go test ./... -cover
|
go test ./... -cover
|
||||||
|
|
||||||
dist: small small_pi
|
dist: clean small small_pi
|
||||||
mkdir build
|
mkdir build
|
||||||
mv nas* build
|
mv nas* build
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf build
|
Loading…
Reference in a new issue