Skip to content

Commit

Permalink
ci: fix benchstat build with go 1.13
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-jukovec committed Jan 16, 2023
1 parent f300bd9 commit a22527a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,13 @@ ${BENCH_PATH} bench-deps:
rm -rf ${BENCH_PATH}
mkdir ${BENCH_PATH}
go clean -testcache
cd ${BENCH_PATH} && git clone https://go.googlesource.com/perf && cd perf && go install ./cmd/benchstat
# It is unable to build a latest version of benchstat with go 1.13. So
# we need to switch to an old commit.
cd ${BENCH_PATH} && \
git clone https://go.googlesource.com/perf && \
cd perf && \
git checkout 91a04616dc65ba76dbe9e5cf746b923b1402d303 && \
go install ./cmd/benchstat
rm -rf ${BENCH_PATH}/perf

.PHONY: bench
Expand Down

0 comments on commit a22527a

Please sign in to comment.