Skip to content

Commit cd6042b

Browse files
authored
Download nightly wheels from main branch (#4257)
Use main branch only to download Triton wheels. This allows building wheels for test branches without affecting normal flow. --------- Signed-off-by: Pavel Chekin <[email protected]>
1 parent f36355f commit cd6042b

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/actions/install-wheels/action.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@ description: Install latest wheels from a specified workflow using a custom wild
44
inputs:
55
workflow:
66
description: Name of the workflow to install wheels from
7-
default: Triton wheels
7+
default: nightly-wheels.yml
88
repository:
99
description: Repository name with owner
1010
default: intel/intel-xpu-backend-for-triton
11+
branch:
12+
description: Filter runs by branch (use empty string for all branches)
13+
default: main
1114
wheels_pattern:
1215
# Example of specifying only some packages to install: '{intel_extension_for_pytorch-*,torch-*}'
1316
# Extended globbing is enabled for this pattern so for example to exclude intel_extension_for_pytorch use pattern
@@ -33,7 +36,11 @@ runs:
3336
GH_TOKEN: ${{ inputs.gh_token }}
3437
run: |
3538
set -e
36-
run_id=$(gh run list -w "${{ inputs.workflow }}" -s success --repo ${{ inputs.repository }} --json databaseId --jq '.[0].databaseId')
39+
if [[ -z "${{ inputs.branch }}" ]]; then
40+
run_id=$(gh run list --workflow "${{ inputs.workflow }}" --status success --repo "${{ inputs.repository }}" --json databaseId --jq '.[0].databaseId')
41+
else
42+
run_id=$(gh run list --workflow "${{ inputs.workflow }}" --branch "${{ inputs.branch }}" --status success --repo "${{ inputs.repository }}" --json databaseId --jq '.[0].databaseId')
43+
fi
3744
if [[ ! $run_id ]]; then
3845
exit 1
3946
fi

scripts/install-pytorch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ if [ "$BUILD_PYTORCH" = false ]; then
117117
fi
118118
echo "**** Download nightly builds. ****"
119119
PYTHON_VERSION=$(python -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')")
120-
RUN_ID=$(gh run list -w "Triton wheels" -R intel/intel-xpu-backend-for-triton --json databaseId,conclusion | jq -r '[.[] | select(.conclusion=="success")][0].databaseId')
120+
RUN_ID=$(gh run list --workflow nightly-wheels.yml --branch main -R intel/intel-xpu-backend-for-triton --json databaseId,conclusion | jq -r '[.[] | select(.conclusion=="success")][0].databaseId')
121121
TEMP_DIR=$(mktemp -d)
122122
WHEEL_PATTERN="wheels-pytorch-py${PYTHON_VERSION}*"
123123
gh run download $RUN_ID \

0 commit comments

Comments
 (0)