mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Convert various jobs to be Linux Foundation fleet compatible (#134128)
Migrates a batch of workflows over to LF Pull Request resolved: https://github.com/pytorch/pytorch/pull/134128 Approved by: https://github.com/zxiiro, https://github.com/jeanschmidt
This commit is contained in:
committed by
PyTorch MergeBot
parent
0eb9c870fd
commit
5633773188
12
.github/workflows/linux-aarch64.yml
vendored
12
.github/workflows/linux-aarch64.yml
vendored
@ -11,10 +11,22 @@ concurrency:
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
|
||||
get-label-type:
|
||||
name: get-label-type
|
||||
uses: ./.github/workflows/_runner-determinator.yml
|
||||
with:
|
||||
triggering_actor: ${{ github.triggering_actor }}
|
||||
issue_owner: ${{ github.event.pull_request.user.login || github.event.issue.user.login }}
|
||||
curr_branch: ${{ github.head_ref || github.ref_name }}
|
||||
curr_ref_type: ${{ github.ref_type }}
|
||||
|
||||
linux-jammy-aarch64-py3_10-build:
|
||||
name: linux-jammy-aarch64-py3.10
|
||||
uses: ./.github/workflows/_linux-build.yml
|
||||
needs: get-label-type
|
||||
with:
|
||||
runner_prefix: ${{ needs.get-label-type.outputs.label-type }}
|
||||
build-environment: linux-jammy-aarch64-py3.10
|
||||
docker-image-name: pytorch-linux-jammy-aarch64-py3.10-gcc11
|
||||
runner: linux.arm64.2xlarge
|
||||
|
13
.github/workflows/llm_td_retrieval.yml
vendored
13
.github/workflows/llm_td_retrieval.yml
vendored
@ -8,9 +8,20 @@ permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
|
||||
get-label-type:
|
||||
name: get-label-type
|
||||
uses: ./.github/workflows/_runner-determinator.yml
|
||||
with:
|
||||
triggering_actor: ${{ github.triggering_actor }}
|
||||
issue_owner: ${{ github.event.pull_request.user.login || github.event.issue.user.login }}
|
||||
curr_branch: ${{ github.head_ref || github.ref_name }}
|
||||
curr_ref_type: ${{ github.ref_type }}
|
||||
|
||||
llm-retrieval:
|
||||
runs-on: linux.4xlarge
|
||||
runs-on: "${{ needs.get-label-type.outputs.label-type }}linux.4xlarge"
|
||||
continue-on-error: true
|
||||
needs: get-label-type
|
||||
steps:
|
||||
- name: Clone PyTorch
|
||||
uses: actions/checkout@v3
|
||||
|
13
.github/workflows/target_determination.yml
vendored
13
.github/workflows/target_determination.yml
vendored
@ -4,10 +4,21 @@ on:
|
||||
workflow_call:
|
||||
|
||||
jobs:
|
||||
|
||||
get-label-type:
|
||||
name: get-label-type
|
||||
uses: ./.github/workflows/_runner-determinator.yml
|
||||
with:
|
||||
triggering_actor: ${{ github.triggering_actor }}
|
||||
issue_owner: ${{ github.event.pull_request.user.login || github.event.issue.user.login }}
|
||||
curr_branch: ${{ github.head_ref || github.ref_name }}
|
||||
curr_ref_type: ${{ github.ref_type }}
|
||||
|
||||
target-determination:
|
||||
# Don't run on forked repos
|
||||
if: github.repository_owner == 'pytorch'
|
||||
runs-on: linux.2xlarge
|
||||
runs-on: "${{ needs.get-label-type.outputs.label-type }}linux.2xlarge"
|
||||
needs: get-label-type
|
||||
steps:
|
||||
# [pytorch repo ref]
|
||||
# Use a pytorch/pytorch reference instead of a reference to the local
|
||||
|
12
.github/workflows/xpu.yml
vendored
12
.github/workflows/xpu.yml
vendored
@ -11,10 +11,22 @@ concurrency:
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
|
||||
get-label-type:
|
||||
name: get-label-type
|
||||
uses: ./.github/workflows/_runner-determinator.yml
|
||||
with:
|
||||
triggering_actor: ${{ github.triggering_actor }}
|
||||
issue_owner: ${{ github.event.pull_request.user.login || github.event.issue.user.login }}
|
||||
curr_branch: ${{ github.head_ref || github.ref_name }}
|
||||
curr_ref_type: ${{ github.ref_type }}
|
||||
|
||||
linux-jammy-xpu-py3_8-build:
|
||||
name: linux-jammy-xpu-py3.8
|
||||
uses: ./.github/workflows/_linux-build.yml
|
||||
needs: get-label-type
|
||||
with:
|
||||
runner_prefix: ${{ needs.get-label-type.outputs.label-type }}
|
||||
build-environment: linux-jammy-xpu-py3.8
|
||||
docker-image-name: pytorch-linux-jammy-xpu-2024.0-py3
|
||||
runner: linux.12xlarge
|
||||
|
Reference in New Issue
Block a user