@@ -337,6 +337,7 @@ let main_build_job ~analyse_job ~cygwin_job ?section runner start_version ~oc ~w
337337 let matrix = ((platform <> Windows ), matrix, includes) in
338338 let needs = if platform = Windows then [analyse_job; cygwin_job] else [analyse_job] in
339339 let host = host_of_platform platform in
340+ let continue_on_error_trunk = Printf. sprintf " ${{ matrix.ocamlv == '%s' }}" trunk in
340341 job ~oc ~workflow ~runs_on: (Runner [runner]) ?shell ?section ~needs ~matrix (" Build-" ^ name_of_platform platform)
341342 ++ only_on Linux (run " Install bubblewrap" [" sudo apt install bubblewrap" ])
342343 ++ only_on Linux (run " Disable AppArmor" [" echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns" ])
@@ -349,8 +350,8 @@ let main_build_job ~analyse_job ~cygwin_job ?section runner start_version ~oc ~w
349350 ++ only_on Windows (unpack_cygwin " ${{ matrix.build }}" " ${{ matrix.host }}" )
350351 ++ only_on Windows (run " Cygwin info" [" uname -a" ])
351352 ++ build_cache OCaml platform " ${{ matrix.ocamlv }}" host
352- ++ run ~id: " build" ~continue_on_error: ( Printf. sprintf " ${{ matrix.ocamlv == '%s' }} " trunk) " Build" [" bash -exu .github/scripts/main/main.sh " ^ host]
353- ++ not_on Windows (run ~cond: (Predicate (false , Compare (" steps.build.outcome" , " failure" ))) " Test (basic)" [" bash -exu .github/scripts/main/test.sh" ])
353+ ++ run ~id: " build" ~continue_on_error: continue_on_error_trunk " Build" [" bash -exu .github/scripts/main/main.sh " ^ host]
354+ ++ not_on Windows (run ~continue_on_error: continue_on_error_trunk ~ cond: (Predicate (false , Compare (" steps.build.outcome" , " failure" ))) " Test (basic)" [" bash -exu .github/scripts/main/test.sh" ])
354355 ++ only_on Windows (run ~cond: (Predicate (false , EndsWith (" matrix.host" , " -pc-cygwin" ))) " Test \" static\" binaries on Windows" [" ldd ./opam.exe | test \" $(grep -v -F /cygdrive/c/Windows/)\" = ''" ])
355356 ++ only_on Windows
356357 (uses " Upload opam binaries for Windows"
0 commit comments