libp2p-test-plans/perf/impl/quic-go/v0.34/Makefile

23 lines
574 B
Makefile

commitSha := a5cd126c97b6d8d8328141bfa84cc57e74ebc57c
all: perf
perf: perf-${commitSha}
docker run --rm --user "$(shell id -u):$(shell id -g)" -v "$(shell pwd)/perf-${commitSha}":/usr/src/myapp -w /usr/src/myapp -e GOCACHE=/usr/src/myapp/.cache golang:1.20 go build -o perf cmd/main.go
cp perf-${commitSha}/perf .
perf-${commitSha}: perf-${commitSha}.zip
unzip -o perf-${commitSha}.zip
perf-${commitSha}.zip:
wget -O $@ "https://github.com/quic-go/perf/archive/${commitSha}.zip"
clean:
rm perf-*.zip
rm -rf perf-*
rm perf
rm .cache
rm v0.27
.PHONY: all clean