Skip to content

Stop shipping vendored third-party sources in the wheel #14713

Stop shipping vendored third-party sources in the wheel

Stop shipping vendored third-party sources in the wheel #14713

Workflow file for this run

name: Windows MSVC Build
on:
push:
branches:
- main
- release/*
tags:
- ciflow/trunk/*
pull_request:
paths:
- .ci/docker/ci_commit_pins/pytorch.txt
- .ci/scripts/**
- .github/workflows/windows-msvc.yml
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}-${{ github.ref_type == 'branch' && github.sha }}-${{ github.event_name == 'workflow_dispatch' }}-${{ github.event_name == 'schedule' }}
cancel-in-progress: true
permissions:
contents: read
jobs:
changed-files:
name: Get changed files
uses: ./.github/workflows/_get-changed-files.yml
with:
include-push-diff: true
run-decision:
name: CI run decision
uses: ./.github/workflows/_ci-run-decision.yml
build-windows-msvc:
name: build-windows-msvc
needs: [changed-files, run-decision]
# Path-filtered: mirrors the workflow-level pull_request `paths:`
# filter above, so push commits that don't touch these paths skip
# this job on non-sampled commits. See _ci-run-decision.yml for
# the sampling policy.
if: |
contains(needs.changed-files.outputs.changed-files, '.ci/docker/ci_commit_pins/pytorch.txt') ||
contains(needs.changed-files.outputs.changed-files, '.ci/scripts/') ||
contains(needs.changed-files.outputs.changed-files, '.github/workflows/windows-msvc.yml') ||
needs.run-decision.outputs.is-full-run == 'true'
uses: pytorch/test-infra/.github/workflows/windows_job.yml@main
with:
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
timeout: 60
script: |
git config --global http.sslBackend openssl
git submodule update --init --recursive
conda init powershell
powershell -Command "& {
Set-PSDebug -Trace 1
\$ErrorActionPreference = 'Stop'
\$PSNativeCommandUseErrorActionPreference = \$true
.ci/scripts/setup-windows-msvc.ps1
}"
build-windows-arm64:
name: build-windows-arm64
needs: [changed-files, run-decision]
if: |
contains(needs.changed-files.outputs.changed-files, '.ci/docker/ci_commit_pins/pytorch.txt') ||
contains(needs.changed-files.outputs.changed-files, '.ci/scripts/') ||
contains(needs.changed-files.outputs.changed-files, '.github/workflows/windows-msvc.yml') ||
needs.run-decision.outputs.is-full-run == 'true'
# test-infra's Windows setup assumes the AWS runner image; use the GitHub
# hosted Windows ARM64 image directly.
runs-on: windows-11-arm
timeout-minutes: 60
steps:
- name: Enable long paths
shell: cmd
run: |
git config --system --get core.longpaths || echo "core.longpaths is not set, setting it now"
git config --system core.longpaths true
- name: Checkout ExecuTorch
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
- name: Initialize submodules
shell: pwsh
run: |
git config --global http.sslBackend openssl
git submodule update --init --recursive
- name: Install build dependencies
shell: pwsh
run: python -m pip install pyyaml torch==2.14.0 --extra-index-url https://download.pytorch.org/whl/test/cpu
- name: Build ExecuTorch
shell: pwsh
run: .ci/scripts/setup-windows-arm64.ps1