Run cross-compiled binary
This commit is contained in:
parent
5795d0f0bd
commit
1e0484cdcd
|
@ -3,10 +3,9 @@ url := "olimex@muele.local"
|
|||
build:
|
||||
cross build --target=armv7-unknown-linux-gnueabihf
|
||||
|
||||
rrun:
|
||||
#scp -r ./src {{url}}:red/
|
||||
rsync -rvu --filter=':- .gitignore' ../red {{url}}:
|
||||
ssh {{url}} "cd red; RUST_BACKTRACE=1 /home/olimex/.cargo/bin/cargo run;"
|
||||
run:
|
||||
scp -r ./target/armv7-unknown-linux-gnueabihf/debug/red {{url}}:red-cross
|
||||
ssh {{url}} "RUST_BACKTRACE=1 ./red-cross;"
|
||||
|
||||
rdown:
|
||||
ssh {{url}} "sudo /usr/sbin/poweroff"
|
||||
|
|
Loading…
Reference in a new issue