From 9ecd7f23b1858574fe2c430e605c31665457f718 Mon Sep 17 00:00:00 2001 From: Paca Waca Date: Thu, 21 Aug 2025 15:53:43 +0200 Subject: [PATCH] Add iOS simulator runtime --- .github/workflows/build-natives.yaml | 22 +++++++++++++++++++ .../YetAnotherHttpHandler.csproj | 3 ++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-natives.yaml b/.github/workflows/build-natives.yaml index 4cfda0f..80d2f18 100644 --- a/.github/workflows/build-natives.yaml +++ b/.github/workflows/build-natives.yaml @@ -281,6 +281,28 @@ jobs: name: ios-arm64 path: native/target/aarch64-apple-ios/${{ env._RUST_BUILD_CONFIG }}/libyaha_native.a retention-days: 1 + + build-ios-arm64-sim: + name: Build Native library (ios-arm64-sim) + if: ${{ !inputs.build-only-linux }} + permissions: + contents: read + runs-on: macos-15 + timeout-minutes: 30 + defaults: + run: + working-directory: native + steps: + - uses: Cysharp/Actions/.github/actions/checkout@main + - run: rustup target add aarch64-apple-ios-sim + - run: cargo build --target aarch64-apple-ios-sim --profile ${{ env._RUST_BUILD_CONFIG == 'debug' && 'dev' || env._RUST_BUILD_CONFIG }} + env: + IPHONEOS_DEPLOYMENT_TARGET: 12.0 + - uses: Cysharp/Actions/.github/actions/upload-artifact@main + with: + name: ios-arm64-sim + path: native/target/aarch64-apple-ios-sim/${{ env._RUST_BUILD_CONFIG }}/libyaha_native.a + retention-days: 1 build-android-arm: name: Build Native library (android-arm) diff --git a/src/YetAnotherHttpHandler/YetAnotherHttpHandler.csproj b/src/YetAnotherHttpHandler/YetAnotherHttpHandler.csproj index e18b4aa..23637c7 100644 --- a/src/YetAnotherHttpHandler/YetAnotherHttpHandler.csproj +++ b/src/YetAnotherHttpHandler/YetAnotherHttpHandler.csproj @@ -48,6 +48,7 @@ + @@ -87,4 +88,4 @@ - \ No newline at end of file +