Run cross-compiled binary

This commit is contained in:
Frederik Menke 2024-01-09 00:39:52 +01:00
parent 5795d0f0bd
commit 1e0484cdcd

View file

@ -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"