fix: add arch to cached path - #843
Conversation
commented
Jul 26, 2024
|
Hello, |
commented
Sep 4, 2024
|
Hello @pengx17, Could you please update the line os.platform() with process.env.RUNNER_OS to maintain the existing value of process.env.RUNNER_OS for better consistency and clarity with the runner name. |
commented
Sep 12, 2024
|
Hello @pengx17, a gentle follow up to update the line os.platform() with process.env.RUNNER_OS to maintain the existing value of process.env.RUNNER_OS for better consistency and clarity with the runner name. |
commented
Sep 24, 2024
Sorry, just noticed the message. Done |
Description:
The existing node cache key does not take architecture into consideration. However during npm/yarn/etc installing the dependencies may generate different binaries based on the current architecture. Thus if the workflow has matrix that spawn different jobs on different architectures for the same platform may consume the same cache, which might be wrong.
This PR adds the arch to the cached key.
Related issue:
Add link to the related issue.
Check list: