
This commit includes updates that affects the build, testing, and deployment of Tile38. - The root level build.sh has been broken up into multiple scripts and placed in the "scripts" directory. - The vendor directory has been updated to follow the Go modules rules, thus `make` should work on isolated environments. Also some vendored packages may have been updated to a later version, if needed. - The Makefile has been updated to allow for making single binaries such as `make tile38-server`. There is some scaffolding during the build process, so from now on all binaries should be made using make. For example, to run a development version of the tile38-cli binary, do this: make tile38-cli && ./tile38-cli not this: go run cmd/tile38-cli/main.go - Travis.CI docker push script has been updated to address a change to Docker's JSON repo meta output, which in turn fixes a bug where new Tile38 versions were not being properly pushed to Docker
47 lines
1.0 KiB
Makefile
47 lines
1.0 KiB
Makefile
all: tile38-server tile38-cli tile38-benchmark tile38-luamemtest
|
|
|
|
.PHONY: tile38-server
|
|
tile38-server:
|
|
@./scripts/build.sh tile38-server
|
|
|
|
.PHONY: tile38-cli
|
|
tile38-cli:
|
|
@./scripts/build.sh tile38-cli
|
|
|
|
.PHONY: tile38-benchmark
|
|
tile38-benchmark:
|
|
@./scripts/build.sh tile38-benchmark
|
|
|
|
.PHONY: tile38-luamemtest
|
|
tile38-luamemtest:
|
|
@./scripts/build.sh tile38-luamemtest
|
|
|
|
test:
|
|
@./scripts/test.sh
|
|
|
|
package:
|
|
@rm -rf packages/
|
|
@scripts/package.sh Windows windows amd64
|
|
@scripts/package.sh Mac darwin amd64
|
|
@scripts/package.sh Linux linux amd64
|
|
@scripts/package.sh FreeBSD freebsd amd64
|
|
@scripts/package.sh ARM linux arm
|
|
@scripts/package.sh ARM64 linux arm64
|
|
|
|
clean:
|
|
rm -rf tile38-server tile38-cli tile38-benchmark tile38-luamemtest
|
|
|
|
distclean: clean
|
|
rm -rf packages/
|
|
|
|
install: all
|
|
cp tile38-server /usr/local/bin
|
|
cp tile38-cli /usr/local/bin
|
|
cp tile38-benchmark /usr/local/bin
|
|
|
|
uninstall:
|
|
rm -f /usr/local/bin/tile38-server
|
|
rm -f /usr/local/bin/tile38-cli
|
|
rm -f /usr/local/bin/tile38-benchmark
|
|
|