Skip to content

Commit 9890456

Browse files
committed
Fix CI
1 parent c50a125 commit 9890456

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed

tools/ci_setup.ml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -297,29 +297,28 @@ let sync_exec f l =
297297
let l = List.map f l in
298298
List.iter (fun f -> f ()) l
299299

300-
let org_branch nm =
300+
let branch nm =
301301
if is_forked nm then
302-
( "ocaml-wasm"
303-
, match nm with
304-
| "async_js"
305-
| "base"
306-
| "core"
307-
| "core_kernel"
308-
| "core_unix"
309-
| "time_now"
310-
| "zarith_stubs_js" -> Some "js-strings"
311-
| _ -> Some "wasm-v0.18" )
302+
match nm with
303+
| "async_js"
304+
| "base"
305+
| "core"
306+
| "core_kernel"
307+
| "core_unix"
308+
| "time_now"
309+
| "zarith_stubs_js" -> Some "js-strings"
310+
| _ -> Some "wasm-v0.18"
312311
else
313-
"janestreet", None
312+
None
314313

315314
let pin nm =
316-
let _, branch = org_branch nm in
315+
let branch = Option.get (branch nm) in
317316
exec_async
318317
(Printf.sprintf
319-
"opam pin add -n %s https://github.com/ocaml-wasm/%s.git%s"
318+
"opam pin add -n %s https://github.com/ocaml-wasm/%s.git#%s"
320319
nm
321320
nm
322-
(match branch with Some b -> "#" ^ b | None -> ""))
321+
branch)
323322

324323
let pin_packages () = sync_exec pin (StringSet.elements do_pin)
325324

@@ -375,7 +374,7 @@ let () =
375374
sync_exec (fun () -> exec_async "opam install uri --deps-only") [ () ];
376375
sync_exec
377376
(fun nm ->
378-
let org, branch = org_branch nm in
377+
let branch = branch nm in
379378
let commit =
380379
if is_forked nm
381380
then None
@@ -392,7 +391,7 @@ let () =
392391
nm
393392
(Printf.sprintf
394393
"https://github.com/%s/%s"
395-
org
394+
(if is_forked nm then "ocaml-wasm" else "janestreet")
396395
nm))
397396
(StringSet.elements (StringSet.diff js omitted_js))
398397

0 commit comments

Comments
 (0)