Skip to content

Commit f1cd845

Browse files
committed
ci: fix target dir
1 parent 0c76293 commit f1cd845

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

.github/workflows/arkdrop-swift-bindings-release.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,6 @@ jobs:
4646
xcode-select --install 2>/dev/null || true
4747
xcode-select -p
4848
49-
- name: Build Library (for binding generation)
50-
working-directory: ./drop-core/uniffi
51-
run: |
52-
echo "Building debug library for Swift binding generation..."
53-
cargo build --lib
54-
echo "Verifying library was built..."
55-
ls -lh target/debug/libarkdrop_uniffi.* || echo "Warning: Library not found"
56-
5749
- name: Generate Swift Bindings
5850
working-directory: ./drop-core/uniffi/bindings/swift
5951
run: |

drop-core/uniffi/bindings/swift/generate-bindings.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,29 @@ set -e
66

77
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
88
UNIFFI_DIR="$(cd "$SCRIPT_DIR/../.." && pwd)"
9+
WORKSPACE_ROOT="$(cd "$UNIFFI_DIR/../.." && pwd)"
910
OUTPUT_DIR="$SCRIPT_DIR"
1011

1112
echo "Generating Swift bindings..."
13+
echo "Workspace root: $WORKSPACE_ROOT"
1214
echo "UniFFI directory: $UNIFFI_DIR"
1315
echo "Output directory: $OUTPUT_DIR"
1416

1517
cd "$UNIFFI_DIR"
1618

1719
echo "Building library for binding generation..."
18-
cargo build --lib
20+
cargo build --lib --release
1921

20-
LIBRARY_PATH="$UNIFFI_DIR/target/debug/libarkdrop_uniffi.a"
22+
LIBRARY_PATH="$WORKSPACE_ROOT/target/release/libarkdrop_uniffi.a"
2123
if [ ! -f "$LIBRARY_PATH" ]; then
2224
echo "ERROR: Library not found at $LIBRARY_PATH"
25+
echo "Looking for library in target directory..."
26+
find "$WORKSPACE_ROOT/target" -name "libarkdrop_uniffi.*" || true
2327
exit 1
2428
fi
2529

30+
echo "Using library: $LIBRARY_PATH"
31+
2632
echo "Generating Swift sources..."
2733
if ! cargo run --bin uniffi-bindgen-swift -- --swift-sources "$LIBRARY_PATH" "$OUTPUT_DIR"; then
2834
echo "ERROR: Failed to generate Swift sources"

0 commit comments

Comments
 (0)