raspberry-cross-build.sh 607 B

123456789101112131415161718
  1. #!/usr/bin/env bash
  2. # Run this script from the crago workspace root
  3. # Cross compiles release build of joystream-node
  4. # for Raspberry Pi - using docker
  5. # joystream/rust-raspberry image was built from:
  6. # https://github.com/mnaamani/rust-on-raspberry-docker/commit/8536508b743d55c8573043c4082c62da3b4fd3e2
  7. docker run \
  8. --volume ${PWD}/:/home/cross/project \
  9. --volume ${HOME}/.cargo/registry:/home/cross/.cargo/registry \
  10. joystream/rust-raspberry \
  11. build --release -p joystream-node
  12. # artifacts will be relative to the working directory:
  13. # target/arm-unknown-linux-gnueabihf/joystream-node