Skip to content

Commit 1c766f0

Browse files
authored
Clean up Windows runner (#3197)
Delete Triton cache before the tests and temporary files after. Fixes #3196.
1 parent 1b85868 commit 1c766f0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/build-test-windows.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ jobs:
6767
Invoke-BatchFile "C:\Program Files (x86)\Intel\oneAPI\setvars.bat"
6868
python -c 'import torch;print(torch.__version__)'
6969
70+
- name: Clean up Triton cache
71+
shell: bash
72+
run: |
73+
rm -rf ~/.tiron/cache
74+
7075
# We need ninja >= 1.12.0 to support long names on Windows. At the moment there is no required
7176
# version in pypi, so instead of installing ninja with pip we use a preinstalled 1.12.1 on the
7277
# runner.
@@ -126,3 +131,8 @@ jobs:
126131
if: ${{ always() }}
127132
run: |
128133
Remove-Item -LiteralPath ${{ env.NEW_WORKSPACE }} -Force -Recurse -ErrorAction Ignore
134+
135+
- name: Clean up temporary files
136+
shell: bash
137+
run: |
138+
rm -rf rm -rf /tmp/triton-* /tmp/tmp*

0 commit comments

Comments
 (0)