Skip to content

Commit

Permalink
fix(ci): Windows odoc build
Browse files Browse the repository at this point in the history
  • Loading branch information
dmtrKovalenko committed Apr 27, 2024
1 parent 3aea0c0 commit 7dc98ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .ci/esy-build-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ steps:
- template: utils/restore-build-cache.yml
- script: "esy build --release"
displayName: "esy build --release"
- template: utils/create-docs.yml
# odoc on windows in azure fails for unknown reason. Disable until figure out.
# - template: utils/create-docs.yml
- script: "esy test"
displayName: "Run tests"
- task: PublishBuildArtifacts@1
Expand Down
6 changes: 4 additions & 2 deletions bin/Main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ let getIOModule filename =

type 'output diffResult = { exitCode : int; diff : 'output option }

(* Arguments must remain positional for the cmd parser lib that we use *)
let main img1Path img2Path diffPath threshold outputDiffMask failOnLayoutChange
diffColorHex stdoutParsableString antialiasing ignoreRegions diffLines =
diffColorHex toEmitStdoutParsableString antialiasing ignoreRegions diffLines
=
let module IO1 = (val getIOModule img1Path) in
let module IO2 = (val getIOModule img2Path) in
let module Diff = MakeDiff (IO1) (IO2) in
Expand All @@ -26,7 +28,7 @@ let main img1Path img2Path diffPath threshold outputDiffMask failOnLayoutChange
| Some col -> col
| None -> (255, 0, 0))
()
|> Print.printDiffResult stdoutParsableString
|> Print.printDiffResult toEmitStdoutParsableString
|> function
| Layout -> { diff = None; exitCode = 21 }
| Pixel (diffOutput, diffCount, stdoutParsableString, _) when diffCount = 0
Expand Down

0 comments on commit 7dc98ae

Please sign in to comment.