Skip to content

Commit d98046b

Browse files
authored
Add macOS ARM64 pipeline for webgpu (microsoft#24060)
### Description Add macOS ARM64 pipeline for webgpu. This pipeline is a temporary one. I created this pipeline because the current code already fails on macOS ARM64 for WebGPU EP. Adding this pipeline allows to check the status of the fix, and eventually when the build passes, this pipeline will be merged with the existing macOS arm64 pipeline.
1 parent a85977d commit d98046b

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/mac.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,46 @@ jobs:
154154
--use_xnnpack \
155155
--use_binskim_compliant_compile_flags
156156
157+
ARM64-Xcode16-webgpu:
158+
runs-on: macos-15
159+
160+
env:
161+
xcode_version: 16
162+
163+
timeout-minutes: 60
164+
165+
steps:
166+
- uses: actions/setup-python@v5
167+
with:
168+
python-version: ${{ env.python_version }}
169+
170+
- name: Verify ARM64 machine
171+
shell: python
172+
run: |
173+
import platform
174+
assert platform.machine() == "arm64", "This job expects to be run on an ARM64 machine."
175+
176+
- name: Use Xcode ${{ env.xcode_version }}
177+
shell: bash
178+
run: |
179+
XCODE_DEVELOPER_DIR="/Applications/Xcode_${{ env.xcode_version }}.app/Contents/Developer"
180+
sudo xcode-select --switch "${XCODE_DEVELOPER_DIR}"
181+
182+
- uses: actions/checkout@v4
183+
184+
- name: Build and test
185+
shell: bash
186+
run: |
187+
python ./tools/ci_build/build.py \
188+
--build_dir ./build \
189+
--update \
190+
--build --parallel \
191+
--test \
192+
--build_shared_lib \
193+
--build_nodejs \
194+
--use_webgpu \
195+
--use_binskim_compliant_compile_flags
196+
157197
ARM64-Xcode16-targeting-iphonesimulator:
158198
runs-on: macos-15
159199

0 commit comments

Comments
 (0)