fix: set rust compiler version before running cargo commands in python

This commit is contained in:
thunderbiscuit 2024-04-29 15:23:11 -04:00
parent d4736a64d1
commit 431ab90f04
No known key found for this signature in database
GPG Key ID: 88253696EB836462
4 changed files with 4 additions and 4 deletions

View File

@ -6,10 +6,10 @@ ${PYBIN}/pip install -r requirements.txt
echo "Generating bdk.py..."
cd ../bdk-ffi/
rustup default 1.77.1
cargo run --bin uniffi-bindgen generate src/bdk.udl --language python --out-dir ../bdk-python/src/bdkpython/ --no-format
echo "Generating native binaries..."
rustup default 1.77.1
cargo build --profile release-smaller
echo "Copying linux libbdkffi.so..."

View File

@ -6,10 +6,10 @@ pip install -r requirements.txt
echo "Generating bdk.py..."
cd ../bdk-ffi/
rustup default 1.77.1
cargo run --bin uniffi-bindgen generate src/bdk.udl --language python --out-dir ../bdk-python/src/bdkpython/ --no-format
echo "Generating native binaries..."
rustup default 1.77.1
rustup target add aarch64-apple-darwin
cargo build --profile release-smaller --target aarch64-apple-darwin

View File

@ -6,10 +6,10 @@ pip install -r requirements.txt
echo "Generating bdk.py..."
cd ../bdk-ffi/
rustup default 1.77.1
cargo run --bin uniffi-bindgen generate src/bdk.udl --language python --out-dir ../bdk-python/src/bdkpython/ --no-format
echo "Generating native binaries..."
rustup default 1.77.1
rustup target add x86_64-apple-darwin
cargo build --profile release-smaller --target x86_64-apple-darwin

View File

@ -6,10 +6,10 @@ pip install -r requirements.txt
echo "Generating bdk.py..."
cd ../bdk-ffi/
rustup default 1.77.1
cargo run --bin uniffi-bindgen generate src/bdk.udl --language python --out-dir ../bdk-python/src/bdkpython/ --no-format
echo "Generating native binaries..."
rustup default 1.77.1
rustup target add x86_64-pc-windows-msvc
cargo build --profile release-smaller --target x86_64-pc-windows-msvc