mirror of
https://github.com/logos-messaging/go-zerokit-rln-x86_64.git
synced 2026-01-02 13:33:07 +00:00
28 lines
424 B
Bash
Executable File
28 lines
424 B
Bash
Executable File
#!/bin/bash
|
|
|
|
export RUSTFLAGS="-Ccodegen-units=1"
|
|
|
|
rustup default stable
|
|
|
|
cargo install cross
|
|
|
|
platforms=(
|
|
'x86_64-unknown-linux-gnu'
|
|
'x86_64-pc-windows-gnu'
|
|
'x86_64-unknown-linux-musl'
|
|
)
|
|
|
|
for platform in ${platforms[*]}
|
|
do
|
|
mkdir -p ./libs/${platform}
|
|
pushd zerokit/rln
|
|
cargo clean
|
|
cross build --release --lib --target=${platform}
|
|
cp ../target/${platform}/release/librln.a ../../libs/${platform}/.
|
|
popd
|
|
done
|
|
|
|
|
|
|
|
|