name: iOS_CI_on_Mac on: push: branches: - main - rel-* pull_request: branches: - main - rel-* workflow_dispatch: concurrency: group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.sha }} cancel-in-progress: true jobs: iOS_CI_on_Mac: runs-on: macos-15 steps: - name: Checkout repository uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 with: submodules: false - name: Get vcpkg tool info id: vcpkg-tool-info uses: ./.github/actions/get-vcpkg-tool-info - uses: microsoft/onnxruntime-github-actions/setup-build-tools@d19341fb036c43a947a2c0e4a53ad4d15e10bc5c # v0.0.9 with: vcpkg-version: ${{ steps.vcpkg-tool-info.outputs.release_tag }} vcpkg-hash: ${{ steps.vcpkg-tool-info.outputs.sha512 }} cmake-version: '3.31.8' cmake-hash: 99cc9c63ae49f21253efb5921de2ba84ce136018abf08632c92c060ba91d552e0f6acc214e9ba8123dee0cf6d1cf089ca389e321879fd9d719a60d975bcffcc8 add-cmake-to-path: 'true' disable-terrapin: 'true' - name: Use Xcode ${{ env.XCODE_VERSION }} shell: bash run: | set -e -x XCODE_DEVELOPER_DIR="/Applications/Xcode_${{ env.XCODE_VERSION }}.app/Contents/Developer" sudo xcode-select --switch "${XCODE_DEVELOPER_DIR}" - name: (CPU, CoreML, XNNPACK EPs) Build onnxruntime for iOS and run tests using simulator shell: bash run: | python3 ${{ github.workspace }}/tools/ci_build/build.py \ --skip_submodule_sync \ --build_dir ${{ github.workspace }}/iOS \ --build_shared_lib \ --use_coreml \ --use_xnnpack \ --ios \ --apple_sysroot iphonesimulator \ --osx_arch arm64 \ --apple_deploy_target=15.1 \ --use_xcode \ --config RelWithDebInfo \ --build_apple_framework \ --parallel \ --use_binskim_compliant_compile_flags env: ORT_GET_SIMULATOR_DEVICE_INFO_REQUESTED_RUNTIME_VERSION: ${{ env.IOS_SIMULATOR_RUNTIME_VERSION }} timeout-minutes: 150 env: XCODE_VERSION: 26.3 IOS_SIMULATOR_RUNTIME_VERSION: 26.2