feat: add arch to cache key by Zxilly · Pull Request #539 · actions/setup-dotnet

Description:

GitHub has added the arm64 runner, so arch should be used as part of the cache key. Otherwise, if there are macos-13 macos-14 running at the same time, the late executor will get the wrong cache.

Related issue:

actions/setup-python#896

Check list:

  • Mark if documentation changes are required.
  • Mark if tests were added or updated to cover the changes.