3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2025-04-15 00:28:43 +00:00

Only run macOsWorkaround() on macOS.

This commit is contained in:
Gunnar Lilleaasen 2024-09-12 09:43:39 +02:00 committed by GitHub
parent 9bdad043e8
commit ba53a2152f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,7 +32,9 @@ async function run() {
core.info("");
// TODO: remove this once https://github.com/actions/toolkit/pull/553 lands
await macOsWorkaround();
if (process.env["RUNNER_OS"] == "macOS") {
await macOsWorkaround();
}
const allPackages = [];
for (const workspace of config.workspaces) {