This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# @generated DO NOT EDIT MANUALLY | ||
# Template is at: .github/templates/linux_binary_build_workflow.yml.j2 | ||
# Generation script: .github/scripts/generate_ci_workflows.py | ||
name: linux-binary-manywheel | ||
on: | ||
push: | ||
# NOTE: Meta Employees can trigger new nightlies using: https://fburl.com/trigger_pytorch_nightly_build | ||
branches: | ||
- nightly | ||
tags: | ||
# NOTE: Binary build pipelines should only get triggered on release candidate builds | ||
# Release candidate tags look like: v1.11.0-rc1 | ||
- v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+ | ||
- 'ciflow/binaries/*' | ||
- 'ciflow/binaries_wheel/*' | ||
workflow_dispatch: | ||
env: | ||
# Needed for conda builds | ||
ALPINE_IMAGE: "308535385114.dkr.ecr.us-east-1.amazonaws.com/tool/alpine" | ||
ANACONDA_USER: pytorch | ||
AWS_DEFAULT_REGION: us-east-1 | ||
BINARY_ENV_FILE: /tmp/env | ||
BUILD_ENVIRONMENT: linux-binary-manywheel | ||
BUILDER_ROOT: /builder | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
PR_NUMBER: ${{ github.event.pull_request.number }} | ||
PYTORCH_FINAL_PACKAGE_DIR: /artifacts | ||
PYTORCH_ROOT: /pytorch | ||
SHA1: ${{ github.event.pull_request.head.sha || github.sha }} | ||
SKIP_ALL_TESTS: 0 | ||
concurrency: | ||
group: linux-binary-manywheel-${{ github.event.pull_request.number || github.ref_name }}-${{ github.ref_type == 'branch' && github.sha }}-${{ github.event_name == 'workflow_dispatch' }} | ||
cancel-in-progress: true | ||
jobs: | ||
test-get-pr: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
pull-requests: read | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/github-script@v7 | ||
id: get_pr_data | ||
with: | ||
script: | | ||
console.log(context.payload.compare) | ||
const commitRegex = /.*compare\/([a-f0-9]+)\^\.\.\.([a-f0-9]+)/g; | ||
const match = context.payload.compare.match(commitRegex); | ||
console.log(match); | ||
console.log(context); | ||
console.log(context.payload.commits[0]); | ||
- name: Get changed files | ||
id: changed-files | ||
uses: tj-actions/changed-files@v44 | ||
with: | ||
base_sha: 1d9f5243a76e | ||
# To compare changes between the current commit and the last pushed remote commit set `since_last_remote_commit: true`. e.g | ||
# with: | ||
# since_last_remote_commit: true | ||
- name: List all changed files | ||
run: | | ||
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do | ||
echo "$file was changed" | ||
done | ||
manywheel-py3_9-cpu-build: | ||
if: ${{ github.repository_owner == 'pytorch' }} | ||
uses: ./.github/workflows/_binary-build-linux.yml | ||
with: | ||
PYTORCH_ROOT: /pytorch | ||
BUILDER_ROOT: /builder | ||
PACKAGE_TYPE: manywheel | ||
# TODO: This is a legacy variable that we eventually want to get rid of in | ||
# favor of GPU_ARCH_VERSION | ||
DESIRED_CUDA: cpu | ||
GPU_ARCH_TYPE: cpu | ||
DOCKER_IMAGE: pytorch/manylinux-builder:cpu-main | ||
DESIRED_PYTHON: "3.9" | ||
build_name: manywheel-py3_9-cpu | ||
build_environment: linux-binary-manywheel | ||
secrets: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} |