Skip to content

Commit

Permalink
fix(CI): fix static builds and some specific deps
Browse files Browse the repository at this point in the history
  • Loading branch information
AltGr committed Jul 25, 2024
1 parent 58afa4f commit 9da4406
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ RUN opam install . --destdir /home/opam/install-prefix --locked
FROM alpine:3.13 as client

RUN apk update \
&& apk add ncurses-libs libev dumb-init openssl \
&& apk add ncurses-libs libev dumb-init libssl3 libcrypto3 \
&& addgroup learn-ocaml \
&& adduser learn-ocaml -DG learn-ocaml

Expand Down
1 change: 1 addition & 0 deletions learn-ocaml-client.opam
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ depends: [
"ssl" {>= "0.5.12"}
"vg"
"asak" {>= "0.5"}
"js_of_ocaml" {>= "5.0.0"}
]
build: [
["dune" "build" "@install" "-p" name "-j" jobs]
Expand Down
4 changes: 2 additions & 2 deletions learn-ocaml.opam
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ depends: [
"easy-format" {>= "1.3.0" }
"ezjsonm"
"ipaddr" {>= "2.9.0" }
"js_of_ocaml" {>= "3.3.0" & != "3.10.0"}
"js_of_ocaml-compiler" {>= "3.3.0"}
"js_of_ocaml" {>= "5.0.0"}
"js_of_ocaml-compiler" {>= "5.0.0"}
"js_of_ocaml-lwt"
"js_of_ocaml-ppx"
"js_of_ocaml-toplevel"
Expand Down
4 changes: 2 additions & 2 deletions src/main/linking_flags.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ case $(uname -s) in
Linux)
case $(. /etc/os-release && echo $ID) in
alpine)
COMMON_LIBS="camlstr ssl_stubs ssl crypto cstruct_stubs bigstringaf_stubs lwt_unix_stubs unix c"
COMMON_LIBS="camlstrnat ssl_stubs ssl crypto cstruct_stubs bigstringaf_stubs lwt_unix_stubs unixnat c"
# `m` and `pthread` are built-in musl
echo2 '(-noautolink'
echo2 ' -cclib -Wl,-Bstatic'
Expand All @@ -68,7 +68,7 @@ case $(uname -s) in
esac
;;
Darwin)
COMMON_LIBS="camlstr ssl_stubs /usr/local/opt/openssl/lib/libssl.a /usr/local/opt/openssl/lib/libcrypto.a cstruct_stubs bigstringaf_stubs lwt_unix_stubs unix"
COMMON_LIBS="camlstrnat ssl_stubs /usr/local/opt/openssl/lib/libssl.a /usr/local/opt/openssl/lib/libcrypto.a cstruct_stubs bigstringaf_stubs lwt_unix_stubs unixnat"
# `m` and `pthread` are built-in in libSystem
echo2 '(-noautolink'
for l in $EXTRA_LIBS $COMMON_LIBS; do
Expand Down

0 comments on commit 9da4406

Please sign in to comment.