Skip to content

Commit 4cc3e62

Browse files
committed
Add iOS simulator runtime
1 parent fc52873 commit 4cc3e62

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/build-natives.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,28 @@ jobs:
281281
name: ios-arm64
282282
path: native/target/aarch64-apple-ios/${{ env._RUST_BUILD_CONFIG }}/libyaha_native.a
283283
retention-days: 1
284+
285+
build-ios-arm64-sim:
286+
name: Build Native library (ios-arm64-sim)
287+
if: ${{ !inputs.build-only-linux }}
288+
permissions:
289+
contents: read
290+
runs-on: macos-15
291+
timeout-minutes: 30
292+
defaults:
293+
run:
294+
working-directory: native
295+
steps:
296+
- uses: Cysharp/Actions/.github/actions/checkout@main
297+
- run: rustup target add aarch64-apple-ios-sim
298+
- run: cargo build --target aarch64-apple-ios-sim --profile ${{ env._RUST_BUILD_CONFIG == 'debug' && 'dev' || env._RUST_BUILD_CONFIG }}
299+
env:
300+
IPHONEOS_DEPLOYMENT_TARGET: 12.0
301+
- uses: Cysharp/Actions/.github/actions/upload-artifact@main
302+
with:
303+
name: ios-arm64-sim
304+
path: native/target/aarch64-apple-ios-sim/${{ env._RUST_BUILD_CONFIG }}/libyaha_native.a
305+
retention-days: 1
284306

285307
build-android-arm:
286308
name: Build Native library (android-arm)

0 commit comments

Comments
 (0)