File tree Expand file tree Collapse file tree 3 files changed +51
-2
lines changed Expand file tree Collapse file tree 3 files changed +51
-2
lines changed Original file line number Diff line number Diff line change 1+ github : extrawurst
Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [ '*' ]
6+ tags :
7+ - ' *'
8+
9+ env :
10+ CARGO_TERM_COLOR : always
11+
12+ jobs :
13+ build :
14+ runs-on : macos-latest
15+
16+ steps :
17+ - uses : actions/checkout@v4
18+ - uses : dtolnay/rust-toolchain@stable
19+
20+ - name : Add iOS targets
21+ run : rustup target add aarch64-apple-ios aarch64-apple-ios-sim x86_64-apple-ios
22+
23+ - name : Rust Cache
24+ uses : Swatinem/rust-cache@v2
25+ with :
26+ workspaces : " ./bevy_ios_iap"
27+
28+ - name : make xcframework archive
29+ run : make zip
30+
31+ # - uses: actions/upload-artifact@v4
32+ # with:
33+ # name: RustXcframework.xcframework.zip
34+ # path: ./RustXcframework.xcframework.zip
35+
36+ - name : Release
37+ uses : softprops/action-gh-release@v2
38+ if : startsWith(github.ref, 'refs/tags/')
39+ with :
40+ # prerelease: ${{ contains(github.ref, '-') }}
41+ files : |
42+ ./RustXcframework.xcframework.zip
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ build-rust:
88 ./bevy_ios_iap/build-rust.sh
99
1010copy-generated :
11- gsed -i ' s/func __swift_bridge__/public func __swift_bridge__/g' bevy_ios_iap/generated/bevy_ios_iap/bevy_ios_iap.swift
11+ sed -i ' ' ' s/func __swift_bridge__/public func __swift_bridge__/g' bevy_ios_iap/generated/bevy_ios_iap/bevy_ios_iap.swift
1212 echo " import RustXcframework " | cat - ./bevy_ios_iap/generated/SwiftBridgeCore.swift > /tmp/out && mv /tmp/out ./bevy_ios_iap/generated/SwiftBridgeCore.swift
1313 echo " import RustXcframework " | cat - ./bevy_ios_iap/generated/bevy_ios_iap/bevy_ios_iap.swift > /tmp/out && mv /tmp/out ./bevy_ios_iap/generated/bevy_ios_iap/bevy_ios_iap.swift
1414 cp ./bevy_ios_iap/generated/bevy_ios_iap/bevy_ios_iap.h ./RustXcframework.xcframework/ios-arm64/Headers/
@@ -24,4 +24,10 @@ build: build-rust copy-generated
2424
2525build-release : build-rust-release copy-generated
2626 cp ./bevy_ios_iap/target/universal-ios/release/libbevy_ios_iap.a ./RustXcframework.xcframework/ios-arm64_x86_64-simulator/
27- cp ./bevy_ios_iap/target/aarch64-apple-ios/release/libbevy_ios_iap.a ./RustXcframework.xcframework/ios-arm64/
27+ cp ./bevy_ios_iap/target/aarch64-apple-ios/release/libbevy_ios_iap.a ./RustXcframework.xcframework/ios-arm64/
28+ ls -lisah ./RustXcframework.xcframework/ios-arm64/
29+ ls -lisah ./RustXcframework.xcframework/ios-arm64_x86_64-simulator
30+
31+ zip : build-release
32+ zip -r RustXcframework.xcframework.zip ./RustXcframework.xcframework/
33+ ls -lisah RustXcframework.xcframework.zip
You can’t perform that action at this time.
0 commit comments