1# @generated DO NOT EDIT MANUALLY 2 3# Template is at: .github/templates/linux_binary_build_workflow.yml.j2 4# Generation script: .github/scripts/generate_ci_workflows.py 5name: linux-binary-libtorch-pre-cxx11 6 7 8on: 9 push: 10 branches: 11 - main 12 tags: 13 - 'ciflow/trunk/*' 14 workflow_dispatch: 15 16env: 17 # Needed for conda builds 18 ALPINE_IMAGE: "308535385114.dkr.ecr.us-east-1.amazonaws.com/tool/alpine" 19 ANACONDA_USER: pytorch 20 AWS_DEFAULT_REGION: us-east-1 21 BINARY_ENV_FILE: /tmp/env 22 BUILD_ENVIRONMENT: linux-binary-libtorch-pre-cxx11 23 BUILDER_ROOT: /builder 24 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 25 PR_NUMBER: ${{ github.event.pull_request.number }} 26 PYTORCH_FINAL_PACKAGE_DIR: /artifacts 27 PYTORCH_ROOT: /pytorch 28 SHA1: ${{ github.event.pull_request.head.sha || github.sha }} 29 SKIP_ALL_TESTS: 0 30concurrency: 31 group: linux-binary-libtorch-pre-cxx11-${{ github.event.pull_request.number || github.ref_name }}-${{ github.ref_type == 'branch' && github.sha }}-${{ github.event_name == 'workflow_dispatch' }} 32 cancel-in-progress: true 33 34jobs: 35 libtorch-cpu-shared-with-deps-pre-cxx11-build: 36 if: ${{ github.repository_owner == 'pytorch' }} 37 uses: ./.github/workflows/_binary-build-linux.yml 38 with: 39 PYTORCH_ROOT: /pytorch 40 BUILDER_ROOT: /builder 41 PACKAGE_TYPE: libtorch 42 # TODO: This is a legacy variable that we eventually want to get rid of in 43 # favor of GPU_ARCH_VERSION 44 DESIRED_CUDA: cpu 45 GPU_ARCH_TYPE: cpu 46 DOCKER_IMAGE: pytorch/manylinux-builder:cpu-2.4 47 LIBTORCH_VARIANT: shared-with-deps 48 DESIRED_DEVTOOLSET: pre-cxx11 49 build_name: libtorch-cpu-shared-with-deps-pre-cxx11 50 build_environment: linux-binary-libtorch-pre-cxx11 51 secrets: 52 github-token: ${{ secrets.GITHUB_TOKEN }} 53 libtorch-cpu-shared-with-deps-pre-cxx11-test: # Testing 54 if: ${{ github.repository_owner == 'pytorch' }} 55 needs: libtorch-cpu-shared-with-deps-pre-cxx11-build 56 uses: ./.github/workflows/_binary-test-linux.yml 57 with: 58 PYTORCH_ROOT: /pytorch 59 BUILDER_ROOT: /builder 60 PACKAGE_TYPE: libtorch 61 # TODO: This is a legacy variable that we eventually want to get rid of in 62 # favor of GPU_ARCH_VERSION 63 DESIRED_CUDA: cpu 64 GPU_ARCH_TYPE: cpu 65 DOCKER_IMAGE: pytorch/manylinux-builder:cpu-2.4 66 LIBTORCH_VARIANT: shared-with-deps 67 DESIRED_DEVTOOLSET: pre-cxx11 68 build_name: libtorch-cpu-shared-with-deps-pre-cxx11 69 build_environment: linux-binary-libtorch-pre-cxx11 70 runs_on: linux.4xlarge 71 secrets: 72 github-token: ${{ secrets.GITHUB_TOKEN }} 73