triton-lang / triton

Development repository for the Triton language and compiler
https://triton-lang.org/
MIT License
13.5k stars 1.67k forks source link

[CI] Fix `du` failling if cache restore fails #5206

Closed peterbell10 closed 4 days ago

peterbell10 commented 4 days ago

Follow up to #5202

It's currently failing with the error

du: /Users/runner/.triton/**: No such file or directory
Error: Process completed with exit code 1.

which happens because even though the .triton directory exists, it is empty. This instead uses du on .triton with a depth of 1.