Skip to content

Commit

Permalink
Add --arm64 flag to cargo lambda build
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirch committed Sep 3, 2023
1 parent ee41b52 commit eccbfac
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 0 additions & 2 deletions Cargo.toml
Expand Up @@ -18,8 +18,6 @@ path = "src/finish_payment.rs"


[dependencies]
# for cross-compilation
openssl = { version = "0.10", features = ["vendored"] }
# for the async runtime
tokio = { version = "1", features = ["full"] }
# for json (de)serialization
Expand Down
6 changes: 1 addition & 5 deletions scripts/build.py
Expand Up @@ -4,12 +4,8 @@
import sys

commands = [
"sudo apt-get install openssl libssl musl-tools pkg-config libssl-dev",
"OPENSSL_LIB_DIR=\"/usr/lib/x86_64-linux-gnu\"",
"OPENSSL_INCLUDE_DIR=\"/usr/include/openssl\"",
"cargo clean",
"pip3 install cargo-lambda",
"cargo lambda build --release --output-format zip"
"cargo lambda build --release --arm64 --output-format zip"
]
os.system("; ".join(commands))

Expand Down

0 comments on commit eccbfac

Please sign in to comment.