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