Skip to content

Commit

Permalink
Always set-up Cygwin whether or not the cache is hit
Browse files Browse the repository at this point in the history
Signed-off-by: Sora Morimoto <[email protected]>
  • Loading branch information
smorimoto committed Jun 22, 2024
1 parent 253a338 commit b2105f9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/setup-ocaml/src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b2105f9

Please sign in to comment.