have cargo install go to ~/.local/bin

This commit is contained in:
Max Howell 2023-03-28 08:42:12 -04:00
parent ac607119e1
commit bde31f1fff
No known key found for this signature in database
GPG key ID: 741BB84EF5BB9EEC

View file

@ -8,10 +8,17 @@ versions:
provides:
- bin/cargo
runtime:
env:
CARGO_INSTALL_ROOT: ${{env.HOME}}/.local
dependencies:
git-scm.org: 2
rust-lang.org: '*'
openssl.org: ^1 # cargo needs the certs
#TODO curl.se: ^8
zlib.net: ^1
#TODO ^^ prevent vendoring by requiring these: libssh2.org & libgit2.org
build:
dependencies:
@ -51,4 +58,7 @@ test:
echo 'fn main() {println!("Hello World!");}' >src/main.rs
cargo clippy
cargo run
cargo run --release
cargo run --release
cargo install cowsay
test -x ~/.local/bin/cowsay
~/.local/bin/cowsay xyz.tea.hi