File tree 5 files changed +7
-7
lines changed
5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ brew update
6
6
brew install pkg-config
7
7
brew install opam
8
8
brew install libev
9
- opam init -y --compiler=4.05 .0
9
+ opam init -y --compiler=4.12 .0
10
10
eval $( opam env)
11
11
12
12
opam install -y -j 2 . --deps-only --locked
Original file line number Diff line number Diff line change 59
59
- name : Prepare build environment
60
60
run : |
61
61
opam init -a --bare
62
- opam switch create . ocaml-base-compiler 'dune<2' --deps-only
62
+ opam switch create . ocaml-base-compiler --deps-only
63
63
- name : Build the binaries
64
64
run : |
65
65
opam exec -- make LINKING_MODE=static
Original file line number Diff line number Diff line change 1
- FROM ocaml/opam2 :alpine as compilation
1
+ FROM ocaml/opam :alpine-3.13-ocaml-4.12 as compilation
2
2
LABEL Description="learn-ocaml building" Vendor="OCamlPro"
3
3
4
4
WORKDIR /home/opam/learn-ocaml
Original file line number Diff line number Diff line change 1
1
# This Dockerfile is useful for testing purposes
2
2
# to ensure learn-ocaml-client can be built alone from learn-ocaml-client.opam
3
3
4
- FROM ocaml/opam:alpine-3.13-ocaml-4.05 as compilation
4
+ FROM ocaml/opam:alpine-3.13-ocaml-4.12 as compilation
5
5
LABEL Description="learn-ocaml building" Vendor="OCamlPro"
6
6
7
7
WORKDIR learn-ocaml
@@ -13,7 +13,7 @@ RUN sudo chown -R opam:nogroup .
13
13
ENV OPAMYES true
14
14
RUN echo 'archive-mirrors: [ "https://opam.ocaml.org/cache" ]' >> ~/.opam/config \
15
15
&& opam repository set-url default http://opam.ocaml.org \
16
- && opam switch 4.05 \
16
+ && opam switch 4.12 \
17
17
&& echo 'pre-session-commands: [ "sudo" "apk" "add" depexts ]' >> ~/.opam/config \
18
18
&& opam pin add -n -y -k path learn-ocaml-client . \
19
19
&& opam install learn-ocaml-client --deps-only
Original file line number Diff line number Diff line change @@ -10,11 +10,11 @@ cd $(dirname "$0")/..
10
10
set -o pipefail
11
11
git ls-files -z | xargs -0 tar c | \
12
12
docker run --rm -i \
13
- ocamlpro/ocaml:4.05 \
13
+ ocamlpro/ocaml:4.12 \
14
14
sh -uexc \
15
15
' tar x >&2 &&
16
16
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 &&
18
18
opam exec make LINKING_MODE=static >&2 &&
19
19
tar c -hC _build/install/default/bin .' | \
20
20
tar vx
You can’t perform that action at this time.
0 commit comments