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