Browse Source

[tm-monitor/tm-bench] fewer platforms

also update dist command to produce SHA256 sums file
pull/1943/head
Anton Kaliaev 7 years ago
parent
commit
38d51cf9cd
No known key found for this signature in database GPG Key ID: 7B6881D965918214
2 changed files with 10 additions and 8 deletions
  1. +5
    -4
      tm-bench/Makefile
  2. +5
    -4
      tm-monitor/Makefile

+ 5
- 4
tm-bench/Makefile View File

@ -20,19 +20,20 @@ test:
go test
build-all: tools
rm -rf ./dist
gox -verbose \
-ldflags "-X main.version=${VERSION}" \
-os="linux darwin windows freebsd openbsd netbsd" \
-arch="amd64 386 armv5 armv6 armv7 arm64" \
-os="linux darwin windows" \
-arch="amd64 386 armv6 arm64" \
-osarch="!darwin/arm64" \
-output="dist/{{.OS}}-{{.Arch}}/{{.Dir}}" .
dist: build-all
cd dist && \
$(DIST_DIRS) cp ../LICENSE {} \; && \
$(DIST_DIRS) cp ../README.md {} \; && \
$(DIST_DIRS) cp ../README.rst {} \; && \
$(DIST_DIRS) tar -zcf tm-bench-${VERSION}-{}.tar.gz {} \; && \
$(DIST_DIRS) zip -r tm-bench-${VERSION}-{}.zip {} \; && \
shasum -a256 ./*.tar.gz > "./tm-bench_${VERSION}_SHA256SUMS" && \
cd ..
build-docker:


+ 5
- 4
tm-monitor/Makefile View File

@ -21,19 +21,20 @@ test:
@go test $(PACKAGES)
build-all: tools
rm -rf ./dist
gox -verbose \
-ldflags "-X main.version=${VERSION}" \
-os="linux darwin windows freebsd openbsd netbsd" \
-arch="amd64 386 armv5 armv6 armv7 arm64" \
-os="linux darwin windows" \
-arch="amd64 386 armv6 arm64" \
-osarch="!darwin/arm64" \
-output="dist/{{.OS}}-{{.Arch}}/{{.Dir}}" .
dist: build-all
cd dist && \
$(DIST_DIRS) cp ../LICENSE {} \; && \
$(DIST_DIRS) cp ../README.md {} \; && \
$(DIST_DIRS) cp ../README.rst {} \; && \
$(DIST_DIRS) tar -zcf tm-monitor-${VERSION}-{}.tar.gz {} \; && \
$(DIST_DIRS) zip -r tm-monitor-${VERSION}-{}.zip {} \; && \
shasum -a256 ./*.tar.gz > "./tm-monitor_${VERSION}_SHA256SUMS" && \
cd ..
build-docker:


Loading…
Cancel
Save