File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
.github/actions/install-wheels Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,13 @@ description: Install latest wheels from a specified workflow using a custom wild
44inputs :
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
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
Original file line number Diff line number Diff 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 \
You can’t perform that action at this time.
0 commit comments