|
58 | 58 | run: | |
59 | 59 | echo "VERBOSE=1" >> $GITHUB_ENV # Enable verbose build output for troubleshooting |
60 | 60 | find /usr/ -name 'libcuda.so.*' |
| 61 | + find /usr/ -name 'libcudart.so.*' |
61 | 62 | echo $LD_LIBRARY_PATH |
62 | 63 |
|
63 | 64 | # Add project-specific and feature flags |
@@ -88,25 +89,28 @@ jobs: |
88 | 89 |
|
89 | 90 | # Run the Python build command to generate the wheel |
90 | 91 | uv pip install build setuptools wheel packaging |
91 | | - # uv pip install -U torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126 |
92 | 92 | CMAKE_ARGS=${CMAKE_ARGS} uv build --wheel |
93 | 93 |
|
94 | | - # --- Post-build steps to get info for release tag --- |
| 94 | + # --- Post-build steps to get info for rename wheel file and release tag --- |
95 | 95 |
|
96 | | - # Find the generated wheel file in the 'dist' directory using bash |
97 | | - # Assumes only one wheel is generated per build configuration run |
98 | | - wheel_file=$(ls dist/*.whl | head -n 1) |
| 96 | + cuda_ver_short=$(echo "${CUDAVER}" | cut -d'.' -f 1,2 | sed 's/\.//g') |
| 97 | + avx_ver=$(echo "${AVXVER}" | tr '[:upper:]' '[:lower:]') |
99 | 98 |
|
100 | | - # Extract the package version (e.g., 1.2.3) from the wheel filename |
101 | | - # Filename format is typically: package_name-version-tag-specificators.whl |
102 | | - # Using basename and cut to split by '-' and get the second field |
103 | | - tag_ver=$(basename "$wheel_file" | cut -d'-' -f 2) |
104 | | - echo "TAG_VERSION=$tag_ver" >> $GITHUB_ENV # Store version in env for release step |
| 99 | + wheel_path=$(ls dist/*.whl | head -n 1) |
| 100 | + filename=$(basename "$wheel_path") |
105 | 101 |
|
106 | | - # Extract the short CUDA version (e.g., 124) from the full version (e.g., 12.4.1) from the matrix variable |
107 | | - cuda_ver_short=$(echo "${CUDAVER}" | cut -d'.' -f 1,2 | sed 's/\.//g') |
108 | | - echo "CUDA_VERSION=$cuda_ver_short" >> $GITHUB_ENV # Store short CUDA version in env |
| 102 | + # Split wheel filename |
| 103 | + IFS='-' read -r dist_name version py_tag abi_tag plat_tag <<< "$filename" |
109 | 104 |
|
| 105 | + new_version="${version}+cu${cuda_ver_short}.${avx_ver}" |
| 106 | + new_filename="${dist_name}-${new_version}-${py_tag}-${plat_tag}" |
| 107 | +
|
| 108 | + # Rename wheel file |
| 109 | + mv "$wheel_path" "dist/$new_filename" |
| 110 | + echo "Renamed wheel to: $new_filename" |
| 111 | +
|
| 112 | + echo "CUDA_VERSION=$cuda_ver_short" >> $GITHUB_ENV # Store short CUDA version in env |
| 113 | + echo "TAG_VERSION=$version" >> $GITHUB_ENV # Store version in env for release step |
110 | 114 |
|
111 | 115 | - name: Get Current Date # Step to get current date for the release tag |
112 | 116 | id: get-date |
|
0 commit comments