-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add rust-libp2p@v0.54.0 to perf
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
commitSha := | ||
|
||
all: perf | ||
|
||
perf: rust-libp2p-${commitSha}/target/release/perf | ||
cp ./rust-libp2p-${commitSha}/target/release/perf . | ||
|
||
rust-libp2p-${commitSha}/target/release/perf: rust-libp2p-${commitSha} | ||
docker run --rm --user "$(shell id -u):$(shell id -g)" -v "$(shell pwd)/rust-libp2p-${commitSha}":/usr/src/myapp -w /usr/src/myapp rust:1.73 cargo build --release --bin perf | ||
|
||
rust-libp2p-${commitSha}: rust-libp2p-${commitSha}.zip | ||
unzip -o rust-libp2p-${commitSha}.zip | ||
|
||
rust-libp2p-${commitSha}.zip: | ||
wget -O $@ "https://github.com/libp2p/rust-libp2p/archive/${commitSha}.zip" | ||
|
||
clean: | ||
rm rust-libp2p-*.zip | ||
rm -rf rust-libp2p-* | ||
rm perf | ||
|
||
.PHONY: all clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters