Skip to content

Commit

Permalink
Fix leading whitespace error in Justfile
Browse files Browse the repository at this point in the history
  • Loading branch information
andresuribe87 committed Aug 7, 2024
1 parent 7992dd7 commit 1f6ecbf
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ setup:
source bin/activate-hermit
git submodule update --init --recursive
if [[ "$(cargo 2>&1)" == *"rustup could not choose a version of cargo to run"* ]]; then
rustup default 1.78.0
case $(uname -sm) in
"Darwin arm64")
rustup target add aarch64-apple-darwin ;;
"Darwin x86_64")
rustup target add x86_64-apple-darwin ;;
"Linux aarch64")
rustup target add aarch64-unknown-linux-gnu ;;
"Linux x86_64")
rustup target add x86_64-unknown-linux-gnu ;;
esac
rustup default 1.78.0
case $(uname -sm) in
"Darwin arm64")
rustup target add aarch64-apple-darwin ;;
"Darwin x86_64")
rustup target add x86_64-apple-darwin ;;
"Linux aarch64")
rustup target add aarch64-unknown-linux-gnu ;;
"Linux x86_64")
rustup target add x86_64-unknown-linux-gnu ;;
esac
fi

build: setup
Expand All @@ -34,23 +34,23 @@ bind: setup

bind-kotlin: setup
case $(uname -sm) in
"Darwin arm64")
TARGET_ARCH="aarch64-apple-darwin" ;;
"Darwin x86_64")
TARGET_ARCH="x86_64-apple-darwin" ;;
"Linux aarch64")
TARGET_ARCH="aarch64-unknown-linux-gnu" ;;
"Linux x86_64")
TARGET_ARCH="x86_64-unknown-linux-gnu" ;;
"Darwin arm64")
TARGET_ARCH="aarch64-apple-darwin" ;;
"Darwin x86_64")
TARGET_ARCH="x86_64-apple-darwin" ;;
"Linux aarch64")
TARGET_ARCH="aarch64-unknown-linux-gnu" ;;
"Linux x86_64")
TARGET_ARCH="x86_64-unknown-linux-gnu" ;;
esac
cargo build --release --package web5_uniffi --target $TARGET_ARCH
cp target/$TARGET_ARCH/release/libweb5_uniffi.* \
bound/kt/src/main/resources/
bound/kt/src/main/resources/
cargo run --package web5_uniffi \
--bin uniffi-bindgen \
generate --library bound/kt/src/main/resources/libweb5_uniffi.* \
--language kotlin \
--out-dir target/bindgen-kotlin
--bin uniffi-bindgen \
generate --library bound/kt/src/main/resources/libweb5_uniffi.* \
--language kotlin \
--out-dir target/bindgen-kotlin
cp target/bindgen-kotlin/web5/sdk/rust/web5.kt bound/kt/src/main/kotlin/web5/sdk/rust/UniFFI.kt

test-bound: setup
Expand Down

0 comments on commit 1f6ecbf

Please sign in to comment.