Skip to content

Commit 19e7438

Browse files
committed
Fixes for Docker and CI
1 parent 66994f2 commit 19e7438

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

.ci-macosx.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ brew update
66
brew install pkg-config
77
brew install opam
88
brew install libev
9-
opam init -y --compiler=4.05.0
9+
opam init -y --compiler=4.12.0
1010
eval $(opam env)
1111

1212
opam install -y -j 2 . --deps-only --locked

.github/workflows/static-builds.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
- name: Prepare build environment
6060
run: |
6161
opam init -a --bare
62-
opam switch create . ocaml-base-compiler 'dune<2' --deps-only
62+
opam switch create . ocaml-base-compiler --deps-only
6363
- name: Build the binaries
6464
run: |
6565
opam exec -- make LINKING_MODE=static

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ocaml/opam2:alpine as compilation
1+
FROM ocaml/opam:alpine-3.13-ocaml-4.12 as compilation
22
LABEL Description="learn-ocaml building" Vendor="OCamlPro"
33

44
WORKDIR /home/opam/learn-ocaml

Dockerfile.test-client

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This Dockerfile is useful for testing purposes
22
# to ensure learn-ocaml-client can be built alone from learn-ocaml-client.opam
33

4-
FROM ocaml/opam:alpine-3.13-ocaml-4.05 as compilation
4+
FROM ocaml/opam:alpine-3.13-ocaml-4.12 as compilation
55
LABEL Description="learn-ocaml building" Vendor="OCamlPro"
66

77
WORKDIR learn-ocaml
@@ -13,7 +13,7 @@ RUN sudo chown -R opam:nogroup .
1313
ENV OPAMYES true
1414
RUN echo 'archive-mirrors: [ "https://opam.ocaml.org/cache" ]' >> ~/.opam/config \
1515
&& opam repository set-url default http://opam.ocaml.org \
16-
&& opam switch 4.05 \
16+
&& opam switch 4.12 \
1717
&& echo 'pre-session-commands: [ "sudo" "apk" "add" depexts ]' >> ~/.opam/config \
1818
&& opam pin add -n -y -k path learn-ocaml-client . \
1919
&& opam install learn-ocaml-client --deps-only

scripts/static-build.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ cd $(dirname "$0")/..
1010
set -o pipefail
1111
git ls-files -z | xargs -0 tar c | \
1212
docker run --rm -i \
13-
ocamlpro/ocaml:4.05 \
13+
ocamlpro/ocaml:4.12 \
1414
sh -uexc \
1515
'tar x >&2 &&
1616
sudo apk add openssl-libs-static >&2 &&
17-
opam switch create . ocaml-system "dune<2" --deps-only >&2 &&
17+
opam switch create . ocaml-system --deps-only >&2 &&
1818
opam exec make LINKING_MODE=static >&2 &&
1919
tar c -hC _build/install/default/bin .' | \
2020
tar vx

0 commit comments

Comments
 (0)