Switching to wsl
Some checks failed
Build / build (push) Successful in 10m47s
Publish Image / publish (push) Failing after 30s
Test / build (push) Successful in 11m0s

This commit is contained in:
Charles Smith
2024-03-31 19:35:04 -04:00
parent 7a32cce8a1
commit a85dc73954
15 changed files with 91 additions and 85 deletions

View File

@@ -7,14 +7,14 @@ VERSION ?= $(shell git describe 2>/dev/null || echo "")
DESTDIR ?= $(GOBIN)
ifeq ($(LOCAL), 1)
IMAGE := r.mills.io/prologic/monkey
IMAGE := r.unflavoredmeson.com/UnflavoredMeson/monkey
TAG := dev
else
ifeq ($(BRANCH), master)
IMAGE := prologic/monkey
IMAGE := UnflavoredMeson/monkey
TAG := latest
else
IMAGE := prologic/monkey
IMAGE := UnflavoredMeson/monkey
TAG := dev
endif
endif
@@ -33,14 +33,14 @@ build: clean cli server ## Build monkey
cli: ## Build monkey CLI
@go build \
-tags "netgo static_build" -installsuffix netgo \
-ldflags "-w -X go.mills.io/monkey/v2.MonkeyVersion=$(VERSION)" \
-ldflags "-w -X go.unflavoredmeson.com/monkey/v2.MonkeyVersion=$(VERSION)" \
./cmd/monkey/...
server: ## Build Monkey server
@go build \
-tags "netgo static_build" -installsuffix netgo \
-ldflags "-w -X go.mills.io/monkey/v2.MonkeyVersion=$(VERSION)" \
./cmd/monkey-server/...
-ldflags "-w -X go.unflavoredmeson.com/monkey/v2.MonkeyVersion=$(VERSION)" \
./cmd/monkey/...
install: cli server ## Install monkey to $DESTDIR
@install -D -m 755 monkey $(DESTDIR)/monkey
@@ -66,16 +66,14 @@ profile: ## Run tests with profiling enabled
@go test -cpuprofile cpu.prof -memprofile mem.prof -v -bench ./...
compare: ## Run benchmarks comparing Monkey with other languages
@hyperfine -w 5 -p 'make build; gcc -o examples/fib examples/fib.c' \
-n c -n go -n tengo -n python -n tauc -n taugo -n monkey \
@hyperfine -w 3 -p 'make build; gcc -o examples/fib examples/fib.c' \
-n c -n go -n tengo -n python -n monkey \
--sort mean-time --export-markdown Benchmark.md \
'./examples/fib' \
'go run examples/fib.go' \
'tengo examples/fib.tengo' \
'python3 examples/fib.py' \
'tauc examples/fib.tau' \
'taugo examples/fib.tau' \
'./monkey examples/fib.m'
'./monkey examples/fib.monkey'
bench: # Run test benchmarks
@go test -v -benchmem -bench=. ./...