Last active
March 17, 2022 04:31
-
-
Save calvinchengx/8cd5d565da5ae6fa01b853adceb7a693 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | |
source $HOME/.cargo/env | |
rustup default nightly | |
# linux build, with openssl | |
sudo apt update && sudo apt install pkg-config libssl-dev | |
cargo build --release --lib | |
TARGET=aarch64-linux-android | |
rustup target add $TARGET | |
cargo install cargo-ndk | |
cargo ndk --target $TARGET build --lib --bin cli --release |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment