Skip to content

Commit c07573a

Browse files
committed
fix: use correct CooklangFindFFI file names from uniffi.toml config
1 parent 15e0ad5 commit c07573a

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

.github/workflows/build-bindings.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ jobs:
150150

151151
- name: Verify bindings generated
152152
run: |
153-
test -f bindings/swift/Sources/CooklangFind/cooklang_find.swift
153+
test -f bindings/swift/Sources/CooklangFind/CooklangFind.swift
154154
test -f bindings/kotlin/org/cooklang/find/cooklang_find.kt
155155
156156
# Publish Swift package on release

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ jobs:
7474
7575
# Create headers
7676
mkdir -p target/ios/ios-device/Headers target/ios/ios-simulator/Headers
77-
cp target/ios/swift/cooklang_findFFI.h target/ios/ios-device/Headers/
78-
cp target/ios/swift/cooklang_findFFI.h target/ios/ios-simulator/Headers/
77+
cp target/ios/swift/CooklangFindFFI.h target/ios/ios-device/Headers/
78+
cp target/ios/swift/CooklangFindFFI.h target/ios/ios-simulator/Headers/
7979
8080
# Create module maps
8181
mkdir -p target/ios/ios-device/Modules target/ios/ios-simulator/Modules
82-
echo 'module CooklangFindFFI { header "cooklang_findFFI.h" export * }' > target/ios/ios-device/Modules/module.modulemap
83-
echo 'module CooklangFindFFI { header "cooklang_findFFI.h" export * }' > target/ios/ios-simulator/Modules/module.modulemap
82+
echo 'module CooklangFindFFI { header "CooklangFindFFI.h" export * }' > target/ios/ios-device/Modules/module.modulemap
83+
echo 'module CooklangFindFFI { header "CooklangFindFFI.h" export * }' > target/ios/ios-simulator/Modules/module.modulemap
8484
8585
# Create XCFramework
8686
xcodebuild -create-xcframework \
@@ -93,7 +93,7 @@ jobs:
9393
- name: Create Swift Package
9494
run: |
9595
mkdir -p target/ios/CooklangFind/Sources/CooklangFind
96-
cp target/ios/swift/cooklang_find.swift target/ios/CooklangFind/Sources/CooklangFind/
96+
cp target/ios/swift/CooklangFind.swift target/ios/CooklangFind/Sources/CooklangFind/
9797
cp -R target/ios/CooklangFindFFI.xcframework target/ios/CooklangFind/
9898
9999
cat > target/ios/CooklangFind/Package.swift << 'EOF'

scripts/build-swift.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ create_xcframework() {
140140

141141
# Create module for macOS
142142
mkdir -p "$OUTPUT_DIR/tmp/macos/Headers"
143-
cp "$OUTPUT_DIR/Sources/CooklangFind/cooklang_findFFI.h" "$OUTPUT_DIR/tmp/macos/Headers/"
144-
cp "$OUTPUT_DIR/Sources/CooklangFind/cooklang_findFFI.modulemap" "$OUTPUT_DIR/tmp/macos/Headers/module.modulemap"
143+
cp "$OUTPUT_DIR/Sources/CooklangFind/CooklangFindFFI.h" "$OUTPUT_DIR/tmp/macos/Headers/"
144+
cp "$OUTPUT_DIR/Sources/CooklangFind/CooklangFindFFI.modulemap" "$OUTPUT_DIR/tmp/macos/Headers/module.modulemap"
145145

146146
framework_args+=(-library "$OUTPUT_DIR/tmp/macos/libcooklang_find.a" -headers "$OUTPUT_DIR/tmp/macos/Headers")
147147
fi
@@ -151,8 +151,8 @@ create_xcframework() {
151151
log_info "Adding iOS device library..."
152152
mkdir -p "$OUTPUT_DIR/tmp/ios-device/Headers"
153153
cp "${PROJECT_ROOT}/target/aarch64-apple-ios/release/libcooklang_find.a" "$OUTPUT_DIR/tmp/ios-device/"
154-
cp "$OUTPUT_DIR/Sources/CooklangFind/cooklang_findFFI.h" "$OUTPUT_DIR/tmp/ios-device/Headers/"
155-
cp "$OUTPUT_DIR/Sources/CooklangFind/cooklang_findFFI.modulemap" "$OUTPUT_DIR/tmp/ios-device/Headers/module.modulemap"
154+
cp "$OUTPUT_DIR/Sources/CooklangFind/CooklangFindFFI.h" "$OUTPUT_DIR/tmp/ios-device/Headers/"
155+
cp "$OUTPUT_DIR/Sources/CooklangFind/CooklangFindFFI.modulemap" "$OUTPUT_DIR/tmp/ios-device/Headers/module.modulemap"
156156

157157
framework_args+=(-library "$OUTPUT_DIR/tmp/ios-device/libcooklang_find.a" -headers "$OUTPUT_DIR/tmp/ios-device/Headers")
158158
fi
@@ -174,8 +174,8 @@ create_xcframework() {
174174
cp "${sim_libs[0]}" "$OUTPUT_DIR/tmp/ios-sim/libcooklang_find.a"
175175
fi
176176

177-
cp "$OUTPUT_DIR/Sources/CooklangFind/cooklang_findFFI.h" "$OUTPUT_DIR/tmp/ios-sim/Headers/"
178-
cp "$OUTPUT_DIR/Sources/CooklangFind/cooklang_findFFI.modulemap" "$OUTPUT_DIR/tmp/ios-sim/Headers/module.modulemap"
177+
cp "$OUTPUT_DIR/Sources/CooklangFind/CooklangFindFFI.h" "$OUTPUT_DIR/tmp/ios-sim/Headers/"
178+
cp "$OUTPUT_DIR/Sources/CooklangFind/CooklangFindFFI.modulemap" "$OUTPUT_DIR/tmp/ios-sim/Headers/module.modulemap"
179179

180180
framework_args+=(-library "$OUTPUT_DIR/tmp/ios-sim/libcooklang_find.a" -headers "$OUTPUT_DIR/tmp/ios-sim/Headers")
181181
fi
@@ -218,7 +218,7 @@ let package = Package(
218218
name: "CooklangFind",
219219
dependencies: ["CooklangFindFFI"],
220220
path: "Sources/CooklangFind",
221-
exclude: ["cooklang_findFFI.h", "cooklang_findFFI.modulemap"]
221+
exclude: ["CooklangFindFFI.h", "CooklangFindFFI.modulemap"]
222222
),
223223
.binaryTarget(
224224
name: "CooklangFindFFI",

0 commit comments

Comments
 (0)