@@ -3,6 +3,7 @@ import * as path from "node:path";
33import * as process from "node:process" ;
44
55import * as core from "@actions/core" ;
6+ import { issueCommand } from "@actions/core/lib/command" ;
67import { exec } from "@actions/exec" ;
78
89import {
@@ -36,7 +37,6 @@ import { resolveCompiler } from "./version";
3637export async function installer ( ) {
3738 const platform = getPlatform ( ) ;
3839 const numberOfProcessors = os . cpus ( ) . length ;
39- const isDebug = core . isDebug ( ) ;
4040 core . exportVariable ( "OPAMCLI" , "2.0" ) ;
4141 core . exportVariable ( "OPAMCOLOR" , "always" ) ;
4242 core . exportVariable ( "OPAMERRLOGLEN" , 0 ) ;
@@ -45,7 +45,6 @@ export async function installer() {
4545 // [todo] remove this line once we unlock opam 2.2
4646 // https://github.com/ocaml/opam/issues/3447
4747 core . exportVariable ( "OPAMSOLVERTIMEOUT" , 1000 ) ;
48- core . exportVariable ( "OPAMVERBOSE" , isDebug ) ;
4948 core . exportVariable ( "OPAMYES" , 1 ) ;
5049 if ( platform === Platform . Win32 ) {
5150 const opamRoot = path . join ( "D:" , ".opam" ) ;
@@ -112,6 +111,14 @@ export async function installer() {
112111 }
113112 }
114113 }
114+ const ocamlMatcherPath = path . join (
115+ // eslint-disable-next-line unicorn/prefer-module
116+ __dirname ,
117+ ".." ,
118+ "matchers" ,
119+ "ocaml.json" ,
120+ ) ;
121+ issueCommand ( "add-matcher" , { } , ocamlMatcherPath ) ;
115122 await exec ( "opam" , [ "--version" ] ) ;
116123 if ( OPAM_DEPEXT ) {
117124 await exec ( "opam" , [ "depext" , "--version" ] ) ;
0 commit comments