File tree Expand file tree Collapse file tree 2 files changed +30
-7
lines changed
Expand file tree Collapse file tree 2 files changed +30
-7
lines changed Original file line number Diff line number Diff line change 66 - ' gl-sdk-*'
77 pull_request : {}
88
9- name : Build & Publish framework for Kotlin library
9+ name : Kotlin library
1010
1111jobs :
1212
Original file line number Diff line number Diff line change @@ -18,13 +18,16 @@ tasks:
1818 - gobley-uniffi-bindgen --config ./libs/gl-sdk/uniffi.kotlin-multiplatform.toml --library ./target/aarch64-linux-android/debug/libglsdk.a --out-dir target/release/kotlin-multiplatform
1919 - cp -a ./target/release/kotlin-multiplatform/* libs/gl-sdk-android/lib/src/
2020
21- aarch64-linux-android :
22- cmds :
23- - exit 1
24-
25- armv7-linux-androideabi :
21+ swift :
22+ deps :
23+ - ios
24+ - ios-sim
2625 cmds :
27- - exit 1
26+ - cargo run --features bindings -- generate --library ./target/aarch64-apple-ios/release/libglsdk.a --language swift --out-dir ./target/swift
27+ - mkdir -p ./target/swift/include
28+ - mv target/swift/glsdkFFI.h target/swift/include
29+ - mv target/swift/glsdkFFI.modulemap target/swift/include/module.modulemap
30+ - xcodebuild -create-xcframework -library target/lipo-ios-sim/release/libglsdk.a -headers target/swift/include -library target/aarch64-apple-ios/release/libglsdk.a -headers target/swift/include -output target/glsdkFFI.xcframework
2831
2932 linux-*-* :
3033 vars :
@@ -33,3 +36,23 @@ tasks:
3336 cmds :
3437 - cargo ndk -t {{.ARCH}}-linux-{{.ABI}} -o target/release/android/jniLibs build -p gl-sdk
3538
39+ ios :
40+ deps :
41+ - ios-apple-aarch64
42+ - ios-apple-x86_64
43+
44+ ios-sim :
45+ deps :
46+ - ios-sim-apple-aarch64
47+
48+ ios-apple-* :
49+ vars :
50+ ARCH : ' {{ index .MATCH 0 }}'
51+ cmds :
52+ - IPHONEOS_DEPLOYMENT_TARGET=12.0 MACOSX_DEPLOYMENT_TARGET=11.0 cargo build --release --target {{.ARCH}}-apple-ios -p gl-sdk
53+
54+ ios-sim-apple-* :
55+ vars :
56+ ARCH : ' {{ index .MATCH 0 }}'
57+ cmds :
58+ - IPHONEOS_DEPLOYMENT_TARGET=12.0 MACOSX_DEPLOYMENT_TARGET=11.0 cargo build --release --target {{.ARCH}}-apple-ios-sim -p gl-sdl
You can’t perform that action at this time.
0 commit comments