Skip to content

Commit c1f32ec

Browse files
committed
Do not install cygwin cache for msys2
1 parent 35be2d8 commit c1f32ec

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/post/index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/setup-ocaml/src/cache.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import {
1818
OPAM_ROOT,
1919
PLATFORM,
2020
RESOLVED_COMPILER,
21+
WINDOWS_ENVIRONMENT,
2122
} from "./constants.js";
2223
import { retrieveLatestOpamRelease } from "./opam.js";
2324
import { retrieveCygwinVersion } from "./windows.js";
@@ -203,7 +204,7 @@ async function restoreOpamCache() {
203204
export async function restoreOpamCaches() {
204205
return await core.group("Retrieve the opam cache", async () => {
205206
const [opamCacheHit, cygwinCacheHit] = await Promise.all(
206-
PLATFORM === "windows"
207+
PLATFORM === "windows" && WINDOWS_ENVIRONMENT === "cygwin"
207208
? [restoreOpamCache(), restoreCygwinCache()]
208209
: [restoreOpamCache()],
209210
);

0 commit comments

Comments
 (0)