-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevsetup.sh
More file actions
executable file
·35 lines (26 loc) · 1.23 KB
/
Copy pathdevsetup.sh
File metadata and controls
executable file
·35 lines (26 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/sh
# Windows cross-compile target
rustup target add x86_64-pc-windows-msvc
# Install cargo-nextest (faster test runner)
if command -v cargo-nextest >/dev/null 2>&1 || [ -x "$HOME/.cargo/bin/cargo-nextest" ]; then
echo "cargo-nextest is already installed."
else
echo "=============================="
echo "Installing cargo-nextest"
echo "=============================="
# FROM https://github.com/nextest-rs/nextest/releases/tag/cargo-nextest-0.9.136
curl -LO https://github.com/nextest-rs/nextest/releases/download/cargo-nextest-0.9.136/cargo-nextest-0.9.136-x86_64-unknown-linux-gnu.tar.gz
# Verify checksum
# sha256:a098eed56f2dd88c7fdca1e554a6b99fa1ffbd2a7a1c41b865700112981f6f52
echo "a098eed56f2dd88c7fdca1e554a6b99fa1ffbd2a7a1c41b865700112981f6f52 cargo-nextest-0.9.136-x86_64-unknown-linux-gnu.tar.gz" | sha256sum -c
# Extract to cargo bin dir
if [ ! -d "$HOME/.cargo/bin" ]; then
mkdir -p ~/.cargo/bin
fi
tar -xzf cargo-nextest-0.9.136-x86_64-unknown-linux-gnu.tar.gz -C ~/.cargo/bin
rm cargo-nextest-0.9.136-x86_64-unknown-linux-gnu.tar.gz
fi
# Install cargo-release
cargo install cargo-release
# Install cross
cargo install cross --git https://github.com/cross-rs/cross