Cache action uses `tar` but it is not provided on Windows

Warning: Tar failed with error: The process 'C:\windows\System32\tar.exe' failed with exit code 1. Ensure BSD tar is installed and on the PATH.
Maybe cache action should provide its own tar or use OS-specific program to create archives?
Oh no why not use rar5 on windows?
This issue is stale because it has been open for 365 days with no activity. Leave a comment to avoid closing this issue in 5 days.
Bump
I think the best option for cache is to use 7z on Windows. If I remember right I think 7z can produce tar.gz.
Github hosted runner do have a tar installed on windows. And i think on self hosted we expect to have tar installed(now i think latest version of windows have tar installed natively).
This issue is stale because it has been open for 200 days with no activity. Leave a comment to avoid closing this issue in 5 days.
I think this issue is no longer needed if you use the windows-latest runners as I think those are essentially on par with Windows 11 which has tar preinstalled on it and in the path.
This issue is stale because it has been open for 200 days with no activity. Leave a comment to avoid closing this issue in 5 days.
This issue was closed because it has been inactive for 5 days since being marked as stale.