Skip to content

Add graph capture and shaders to improve DirectML performance #993

Add graph capture and shaders to improve DirectML performance

Add graph capture and shaders to improve DirectML performance #993

name: "MacOS CPU ARM64 Build"
on: [ workflow_dispatch, pull_request ]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
ort_dir: "onnxruntime-osx-arm64-1.17.3"
ort_zip: "onnxruntime-osx-arm64-1.17.3.tgz"
ort_url: "https://github.com/microsoft/onnxruntime/releases/download/v1.17.3/onnxruntime-osx-arm64-1.17.3.tgz"
jobs:
mac-cpu-arm64-build:
runs-on: macos-latest
steps:
- name: Checkout OnnxRuntime GenAI repo
uses: actions/checkout@v4
with:
submodules: true
- name: Install ninja
run: |
brew install ninja
- name: Download OnnxRuntime
run: |
curl -L -o ${{ env.ort_zip }} ${{ env.ort_url }}
- name: Unzip OnnxRuntime
run: |
tar -xzf ${{ env.ort_zip }}
rm ${{ env.ort_zip }}
- name: Rename OnnxRuntime to ort
run: |
mv ${{ env.ort_dir }} ort
- name: Configure CMake
run: |
cmake --preset macos_cpu_release
- name: Build with CMake
run: |
cmake --build --preset macos_cpu_release --parallel
continue-on-error: false
- name: Verify Build Artifacts
if: always()
continue-on-error: true
run: |
ls -l ${{ github.workspace }}/build
- name: Upload Build Artifacts
uses: actions/upload-artifact@v3
with:
name: onnxruntime-genai-mac-cpu-arm64
path: ${{ github.workspace }}/build/**/*.a