From 9055e68a9b2c29183222e21093fe6c4727ab4165 Mon Sep 17 00:00:00 2001 From: Chester Liu <4710575+skyline75489@users.noreply.github.com> Date: Tue, 17 Dec 2024 12:16:09 +0800 Subject: [PATCH] Added iOS GHA pipeline (#1148) Internal workitem: https://task.ms/aii/35199 --- .github/workflows/ios-build.yml | 41 +++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/ios-build.yml diff --git a/.github/workflows/ios-build.yml b/.github/workflows/ios-build.yml new file mode 100644 index 000000000..71c51267b --- /dev/null +++ b/.github/workflows/ios-build.yml @@ -0,0 +1,41 @@ +name: "iOS ARM64 Build" +on: + workflow_dispatch: + push: + branches: + - main + - rel-* + pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true +jobs: + iphonesimulator-arm64-build: + runs-on: macos-latest # arm64 + steps: + - name: Checkout OnnxRuntime GenAI repo + uses: actions/checkout@v4 + with: + submodules: true + + - uses: actions/setup-python@v5 + with: + python-version: '3.12.x' + + - name: Install the python wheel and dependencies + run: | + python3 -m venv genai-macos-venv + source genai-macos-venv/bin/activate + python3 -m pip install requests + + - name: Run iOS Build + run: | + set -e -x + source genai-macos-venv/bin/activate + python3 build.py --ios \ + --parallel \ + --apple_sysroot iphonesimulator \ + --osx_arch arm64 \ + --apple_deploy_target 15.4 \ + --cmake_generator 'Xcode' \ + --build_dir build_iphonesimulator \ No newline at end of file