Skip to content

Commit f4b0287

Browse files
Update update-ttnn-wheel.yaml
1 parent fc139d8 commit f4b0287

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/update-ttnn-wheel.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,13 @@ jobs:
2828
id: update-requirements
2929
run: |
3030
latest_version=${{ steps.fetch_release.outputs.release }}
31-
latest_version_short=$(echo $latest_version | sed 's/-rc/rc/')
32-
sed -i '/^https:\/\/github\.com\/tenstorrent\/tt-metal\/releases\//d' requirements.txt
33-
echo "ttnn@https://github.com/tenstorrent/tt-metal/releases/download/v$latest_version/ttnn-$latest_version_short+any-cp38-cp38-linux_x86_64.whl" >> requirements.txt
34-
31+
# Remove any existing ttnn lines (adjust the regex if needed)
32+
sed -i '/^ttnn @ https:\/\/github\.com\/tenstorrent\/tt-metal\/releases\//d' requirements.txt
33+
34+
# Append the two lines for the different python versions.
35+
echo "ttnn @ https://github.com/tenstorrent/tt-metal/releases/download/v${latest_version}/ttnn-$latest_version_short+any-cp38-cp38-linux_x86_64.whl ; python_version==\"3.8\"" >> requirements.txt
36+
echo "ttnn @ https://github.com/tenstorrent/tt-metal/releases/download/v${latest_version}/ttnn-$latest_version_short+any-cp310-cp310-linux_x86_64.whl ; python_version==\"3.10\"" >> requirements.txt
37+
3538
- name: Create Pull Request
3639
uses: peter-evans/create-pull-request@v7
3740
id: create-pr

0 commit comments

Comments
 (0)