9090 strategy :
9191 matrix :
9292 target :
93- - { runner: ubuntu-latest, toolkit: "CUDA-12.8" }
94- - { runner: ubuntu-24.04-arm, toolkit: "CUDA-12.8" }
93+ - { runner: ubuntu-latest, toolkit: "CUDA-12.8", test_backends: "cu118 cu130" }
94+ - { runner: ubuntu-24.04-arm, toolkit: "CUDA-12.8", test_backends: "cu126 cu130" }
9595 - { runner: macos-latest, toolkit: "Metal" }
9696 python-version :
9797 # Wheels are built with Python 3.8 Limited API, they should work with all Python >= 3.8.
@@ -138,23 +138,10 @@ jobs:
138138 CUDA_VERSION="${CUDA_VERSION##*-}"
139139 CUDA_VERSION_MAJMIN="$(echo ${CUDA_VERSION} | cut -d '.' -f-2)"
140140 CUDA_VERSION_MAJMIN_NODOT="${CUDA_VERSION_MAJMIN//./}"
141- echo "CUDA_VERSION=${CUDA_VERSION}" | tee -a "${GITHUB_ENV}"
142- if [[ "${{ matrix.target.toolkit }}" == "Nightly-"* ]]; then
143- # Use torch nightly builds
144- export UV_INDEX="https://download.pytorch.org/whl/nightly/cu${CUDA_VERSION_MAJMIN_NODOT}"
145- else
146- export UV_INDEX="https://download.pytorch.org/whl/cu${CUDA_VERSION_MAJMIN_NODOT}"
147- echo "UV_TORCH_BACKEND=cu${CUDA_VERSION_MAJMIN_NODOT}" | tee -a "${GITHUB_ENV}"
148- fi
149- echo "UV_INDEX=${UV_INDEX}" | tee -a "${GITHUB_ENV}"
141+ echo "UV_TORCH_BACKEND=cu${CUDA_VERSION_MAJMIN_NODOT}" | tee -a "${GITHUB_ENV}"
150142 fi
151143 if [[ "${{ env.IS_RELEASE }}" == "true" ]]; then
152- if [[ "${{ matrix.target.toolkit }}" == "Nightly-"* ]]; then
153- # Avoid using same file name for different toolkit.
154- echo "NO_GIT_VERSION=ON" | tee -a "${GITHUB_ENV}"
155- else
156- echo "NO_VERSION_LABEL=ON" | tee -a "${GITHUB_ENV}"
157- fi
144+ echo "NO_VERSION_LABEL=ON" | tee -a "${GITHUB_ENV}"
158145 fi
159146 if [[ "${{ runner.os }}" == "Linux" ]]; then
160147 HOST_CCACHE_DIR="$(ccache --get-config cache_dir)"
@@ -172,7 +159,7 @@ jobs:
172159 id : setup-uv
173160 uses : astral-sh/setup-uv@v7
174161 with :
175- python-version : " 3.12 "
162+ python-version : ${{ matrix.python-version }}
176163 activate-environment : true
177164
178165 - name : Test built wheels
@@ -183,10 +170,6 @@ jobs:
183170 set -e
184171 uv venv --python=3.12 test-venv
185172 source test-venv/bin/activate
186- uv pip install --upgrade pip setuptools wheel
187- if [[ "${UV_INDEX}" == *"/nightly/"* ]]; then
188- uv pip install --prerelease=allow -v torch
189- fi
190173 uv pip install -v "${WHEEL}"
191174 (
192175 set -e
0 commit comments