Skip to content
This repository was archived by the owner on Aug 15, 2024. It is now read-only.

Commit 67cff66

Browse files
committed
Use sub-directory for headers
1 parent 5773767 commit 67cff66

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

.github/workflows/ios-release.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ jobs:
3131
target: aarch64-apple-ios
3232

3333
- name: Build XCFramework
34+
env:
35+
CARGO_INCREMENTAL: 1
3436
run: |
3537
make build-ios
3638
shasum -a 256 arti-rest.xcframework.zip >> ios/body.md

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ $(arxcz): ios/$(arxc)
1515
dev:
1616
perl -pi -e 's/lto = "fat"/lto = "thin"/' Cargo.toml
1717
perl -pi -e 's/.*opt-level = "s"/#opt-level = "s"/' Cargo.toml
18+
rm -rf ../arti-ios/arti-rest.xcframework
1819
cd ios && \
1920
./build_xcf.sh dev && \
2021
cp -av arti-rest.xcframework ../../arti-ios
2122
perl -pi -e 's/lto = "thin"/lto = "fat"/' Cargo.toml
22-
perl -pi -e 's/#opt-level = "s"/opt-level = "s"/' Cargo.toml
23+
perl -pi -e 's/.*#opt-level = "s"/opt-level = "s"/' Cargo.toml

ios/build_xcf.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ fi
2222
for arch in $ARCHS; do
2323
cargo build --target $arch $MODEFLAG
2424
tdir=../target/$arch/$MODE
25-
mkdir -p $tdir/headers
26-
cp arti-rest.h module.modulemap $tdir/headers
25+
rm -rf $tdir/headers
26+
mkdir -p $tdir/headers/arti-rest
27+
cp arti-rest.h module.modulemap $tdir/headers/arti-rest
2728
XCFRAMEWORK_ARGS="${XCFRAMEWORK_ARGS} -library $tdir/libcore.a"
28-
XCFRAMEWORK_ARGS="${XCFRAMEWORK_ARGS} -headers $tdir/headers/"
29+
XCFRAMEWORK_ARGS="${XCFRAMEWORK_ARGS} -headers $tdir/headers/arti-rest"
2930
done
3031

3132
XCFFILE=arti-rest.xcframework

ios/modulemap.xcconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
MODULE_MAP = arti-rest.modulemap

0 commit comments

Comments
 (0)