Skip to content

Commit

Permalink
Configure verbose mode switch properly
Browse files Browse the repository at this point in the history
Signed-off-by: Sora Morimoto <[email protected]>
  • Loading branch information
smorimoto committed Sep 15, 2023
1 parent 8ee871f commit 0cdf8cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions dist/index.js

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

6 changes: 2 additions & 4 deletions packages/setup-ocaml/src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,15 @@ import { resolveCompiler } from "./version";

export async function installer() {
const platform = getPlatform();
const numberOfProcessors = os.cpus().length;
const isDebug = core.isDebug();
core.exportVariable("OPAMCLI", "2.0");
core.exportVariable("OPAMCOLOR", "always");
core.exportVariable("OPAMERRLOGLEN", 0);
core.exportVariable("OPAMJOBS", numberOfProcessors);
core.exportVariable("OPAMJOBS", os.cpus().length);
core.exportVariable("OPAMPRECISETRACKING", 1);
// [todo] remove this line once we unlock opam 2.2
// https://github.com/ocaml/opam/issues/3447
core.exportVariable("OPAMSOLVERTIMEOUT", 1000);
core.exportVariable("OPAMVERBOSE", isDebug);
core.exportVariable("OPAMVERBOSE", core.isDebug() ? "n" : 0);
core.exportVariable("OPAMYES", 1);
if (platform === Platform.Win32) {
const opamRoot = path.join("D:", ".opam");
Expand Down

0 comments on commit 0cdf8cb

Please sign in to comment.