diff --git a/CHANGELOG.md b/CHANGELOG.md index ff1b16f8..198efbe1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ and this project adheres to ## [unreleased] +### Changed + +- Always set-up Cygwin whether or not the cache is hit. + ## [3.0.0-alpha] ### Added diff --git a/dist/index.js b/dist/index.js index 768cabf4..838a9803 100644 --- a/dist/index.js +++ b/dist/index.js @@ -109834,8 +109834,8 @@ async function installer() { } const { opamCacheHit, cygwinCacheHit } = await restoreOpamCaches(); if (PLATFORM === "windows") { + await setupCygwin(); if (!cygwinCacheHit) { - await setupCygwin(); await saveCygwinCache(); } lib_core.addPath(CYGWIN_ROOT_BIN); diff --git a/packages/setup-ocaml/src/installer.ts b/packages/setup-ocaml/src/installer.ts index d86a9d9b..375e11a1 100644 --- a/packages/setup-ocaml/src/installer.ts +++ b/packages/setup-ocaml/src/installer.ts @@ -63,8 +63,8 @@ export async function installer() { } const { opamCacheHit, cygwinCacheHit } = await restoreOpamCaches(); if (PLATFORM === "windows") { + await setupCygwin(); if (!cygwinCacheHit) { - await setupCygwin(); await saveCygwinCache(); } core.addPath(CYGWIN_ROOT_BIN);