Skip to content

Commit 47d0c87

Browse files
committed
update the old pipeline to Seoul
1 parent 2c386e8 commit 47d0c87

8 files changed

Lines changed: 62 additions & 74 deletions

File tree

Dockerfile

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ WORKDIR /ligo
77
RUN apk update && apk upgrade && apk --no-cache add \
88
build-base snappy-dev alpine-sdk \
99
bash ncurses-dev xz m4 git pkgconfig findutils rsync \
10-
gmp-dev libev-dev libressl-dev linux-headers pcre-dev perl zlib-dev hidapi-dev \
11-
libffi-dev \
12-
cargo py3-jsonschema cmake opam
10+
gmp-dev libev-dev linux-headers pcre-dev perl zlib-dev hidapi-dev \
11+
libffi-dev py3-jsonschema cmake opam rustup \
12+
openssl openssl-dev openssl-libs-static
1313

14+
RUN rustup-init --profile minimal --default-toolchain 1.86.0 -y
15+
ENV PATH="/root/.cargo/bin:${PATH}"
1416
RUN opam init --disable-sandboxing --bare
1517

1618
# make bls12-381 build ???
@@ -26,15 +28,16 @@ RUN opam var --global os-distribution=arch
2628
RUN opam update \
2729
&& sh scripts/setup_switch.sh
2830
COPY scripts/install_opam_deps.sh /ligo/scripts/install_opam_deps.sh
29-
COPY vendors /ligo/vendors
30-
COPY vendored-dune /ligo/vendored-dune
3131
COPY ligo.opam /ligo
3232
COPY ligo.opam.locked /ligo
3333

34+
COPY vendors /ligo/vendors
35+
COPY vendored-dune /ligo/vendored-dune
36+
COPY gitlab-pages /ligo/gitlab-pages
37+
3438
# install all transitive deps
3539
RUN opam update && sh scripts/install_opam_deps.sh
3640

37-
COPY gitlab-pages /ligo/gitlab-pages
3841
# Install LIGO
3942
COPY dune dune-project /ligo/
4043
COPY configurator /ligo/configurator
@@ -55,27 +58,26 @@ COPY tools/ligo-syntax-highlighting ligo-syntax-highlighting
5558
ARG ligo_version
5659
### TAG_REMOVE_IN_CASE_OF_MR ###
5760

61+
# Generate syntax highlighting files
62+
RUN mkdir highlighting highlighting/vim highlighting/emacs highlighting/vscode highlighting/textmate \
63+
&& opam exec -- dune exec ligo-syntax-highlighting/LigoSyntaxHighlighting.exe -- --vim=highlighting/vim --emacs=highlighting/emacs --vscode=highlighting/vscode --textmate=highlighting/textmate
64+
65+
COPY changelog.txt /ligo/changelog.txt
66+
ENV CHANGELOG_PATH=/ligo/changelog.txt
67+
5868
# Tests
5969
##################
6070
# Code between TAG_REMOVE_IN_CASE_OF_SKIPTEST will be removed in case of skip test.
6171
# Useful if the package is build but have already been tested
6272
##################
6373
### TAG_REMOVE_IN_CASE_OF_SKIPTEST ###
6474
# Run tests
65-
RUN opam exec -- dune runtest -j 5 --profile static --no-buffer \
75+
RUN opam exec -- dune runtest --profile static --no-buffer || true
76+
RUN opam exec -- dune runtest -j 1 --profile static --no-buffer \
6677
# Coverage (only the overall)
67-
&& find . -name '*.coverage' | xargs rm -f \
68-
&& opam exec -- dune clean
78+
&& find . -name '*.coverage' | xargs rm -f
6979
### TAG_REMOVE_IN_CASE_OF_SKIPTEST ###
7080

71-
# Generate syntax highlighting files
72-
RUN mkdir highlighting highlighting/vim highlighting/emacs highlighting/vscode highlighting/textmate \
73-
&& opam exec -- dune exec ligo-syntax-highlighting/LigoSyntaxHighlighting.exe -- --vim=highlighting/vim --emacs=highlighting/emacs --vscode=highlighting/vscode --textmate=highlighting/textmate
74-
75-
COPY changelog.txt /ligo/changelog.txt
76-
ENV CHANGELOG_PATH=/ligo/changelog.txt
77-
78-
7981
RUN LIGO_VERSION=$ligo_version opam exec -- dune build -p ligo --profile static \
8082
# Copy binary now to avoid problems with BISECT_ENABLE below
8183
&& cp /ligo/_build/install/default/bin/ligo /tmp/ligo \

dune-project

Lines changed: 24 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
(using menhir 2.0)
2323

2424
(using coq 0.8)
25+
2526
(using ctypes 0.3)
2627

2728
(package
@@ -30,11 +31,11 @@
3031
; When modifying the dependencies, don't forget to run `make lock`
3132
(depends
3233
(core
33-
(>= v0.16.0))
34+
(>= v0.16.0))
3435
(core_unix
35-
(>= v0.16.0))
36+
(>= v0.16.0))
3637
(core_kernel
37-
(>= v0.16.0))
38+
(>= v0.16.0))
3839
ocamlgraph
3940
(menhir
4041
(= 20230608))
@@ -48,11 +49,10 @@
4849
tls
4950
decompress
5051
(tar
51-
(= 2.6.0))
52+
(= 2.6.0))
5253
(tar-unix
53-
(= 2.6.0))
54+
(= 2.6.0))
5455
lambda-term
55-
parse-argv
5656
msgpck
5757
(bin_prot
5858
(>= v0.16.0))
@@ -69,27 +69,29 @@
6969
(lwt
7070
(= 5.7.0))
7171
lwt_ppx
72+
lwt_ssl
7273
(bisect_ppx
7374
(>= 2.3.0))
7475
irmin
7576
(cmdliner
76-
(= 1.1.0))
77+
(= 1.3.0))
7778
ocaml-compiler-libs
7879
simple-diff
7980
stdint
8081
alcotest-lwt
8182
qcheck-alcotest
8283
irmin-pack
8384
pure-splitmix
84-
; cohttp-server-lwt-unix
85-
; resto-cohttp-self-serving-client
85+
; cohttp-server-lwt-unix
86+
; resto-cohttp-self-serving-client
8687
crunch
8788
class_group_vdf
8889
hex
8990
lwt-canceler
9091
lwt-exit
9192
logs
92-
cohttp
93+
(cohttp
94+
(= 5.3.1))
9395
conduit-lwt-unix
9496
magic-mime
9597
seqes
@@ -107,43 +109,33 @@
107109
(and
108110
(>= 4.0.0)
109111
(< 5.0.0)))
110-
(ocamlformat
111-
(= 0.21.0))
112-
(ocamlformat-rpc
113-
(= 0.21.0))
114112
(ocaml-lsp-server
115-
(>= 1.14.0))
116-
(lsp
117-
(and
118-
(>= 1.17)
119-
(< 1.18)))
113+
(>= 1.21.0))
120114
aches-lwt
121115
fileutils
122116
(conduit
123-
(= 6.1.0))
117+
(= 8.0.0))
124118
(ocaml-recovery-parser
125-
(= 0.2.4))
119+
(= 0.3.0))
126120
(linol
127-
(= 0.5))
121+
(= 0.10))
128122
(linol-lwt
129-
(= 0.5))
123+
(= 0.10))
130124
grace
125+
eio
126+
eio_main
127+
lwt_eio
131128
; For building, testing, or documentation
132129
(dune
133130
(>= 3.8 :build))
134-
(coq
135-
(and
136-
(>= 8.12)
137-
(< 8.14)
138-
:build))
139131
(alcotest :with-test)
140132
(ppx_expect :with-test)
141133
(ppx_inline_test :with-test)
142134
(odoc :with-test)
143135
; For dev
144136
(ocamlformat
145-
(= 0.21.0 :dev))
146-
(ocaml-lsp-server
147-
(>= 1.14.0 :dev))
137+
(= 0.27.0 :dev))
148138
(ocamlformat-rpc
149-
(= 0.21.0 :dev))))
139+
(= 0.27.0 :dev))
140+
(ocaml-lsp-server
141+
(>= 1.21.0 :dev))))

ligo.opam

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ depends: [
2626
"tar" {= "2.6.0"}
2727
"tar-unix" {= "2.6.0"}
2828
"lambda-term"
29-
"parse-argv"
3029
"msgpck"
3130
"bin_prot" {>= "v0.16.0"}
3231
"ppx_bin_prot" {>= "v0.16.0"}
@@ -38,9 +37,10 @@ depends: [
3837
"prometheus" {>= "1.2"}
3938
"lwt" {= "5.7.0"}
4039
"lwt_ppx"
40+
"lwt_ssl"
4141
"bisect_ppx" {>= "2.3.0"}
4242
"irmin"
43-
"cmdliner" {= "1.1.0"}
43+
"cmdliner" {= "1.3.0"}
4444
"ocaml-compiler-libs"
4545
"simple-diff"
4646
"stdint"
@@ -54,7 +54,7 @@ depends: [
5454
"lwt-canceler"
5555
"lwt-exit"
5656
"logs"
57-
"cohttp"
57+
"cohttp" {= "5.3.1"}
5858
"conduit-lwt-unix"
5959
"magic-mime"
6060
"seqes"
@@ -67,26 +67,25 @@ depends: [
6767
"mtime" {>= "2.0.0"}
6868
"zarith" {= "1.13"}
6969
"tezt" {>= "4.0.0" & < "5.0.0"}
70-
"ocamlformat" {= "0.21.0"}
71-
"ocamlformat-rpc" {= "0.21.0"}
72-
"ocaml-lsp-server" {>= "1.14.0"}
73-
"lsp" {>= "1.17" & < "1.18"}
70+
"ocaml-lsp-server" {>= "1.21.0"}
7471
"aches-lwt"
7572
"fileutils"
76-
"conduit" {= "6.1.0"}
77-
"ocaml-recovery-parser" {= "0.2.4"}
78-
"linol" {= "0.5"}
79-
"linol-lwt" {= "0.5"}
73+
"conduit" {= "8.0.0"}
74+
"ocaml-recovery-parser" {= "0.3.0"}
75+
"linol" {= "0.10"}
76+
"linol-lwt" {= "0.10"}
8077
"grace"
78+
"eio"
79+
"eio_main"
80+
"lwt_eio"
8181
"dune" {>= "3.8" & "3.8" >= build}
82-
"coq" {>= "8.12" & < "8.14" & build}
8382
"alcotest" {with-test}
8483
"ppx_expect" {with-test}
8584
"ppx_inline_test" {with-test}
8685
"odoc" {with-test}
87-
"ocamlformat" {"0.21.0" = dev}
88-
"ocaml-lsp-server" {"1.14.0" >= dev}
89-
"ocamlformat-rpc" {"0.21.0" = dev}
86+
"ocamlformat" {"0.27.0" = dev}
87+
"ocamlformat-rpc" {"0.27.0" = dev}
88+
"ocaml-lsp-server" {"1.21.0" >= dev}
9089
"odoc" {with-doc}
9190
]
9291
build: [
@@ -105,9 +104,7 @@ build: [
105104
]
106105
dev-repo: "git+https://gitlab.com/ligolang/ligo.git"
107106
pin-depends: [
108-
[ "ocaml-recovery-parser.0.2.4" "git+https://github.com/serokell/ocaml-recovery-parser.git#e05c872d1a0e8074940d995b57556121eddbf0f2" ]
109-
[ "linol.0.5" "git+https://github.com/c-cube/linol.git#7730eabf98f657059920369b41d43e657a231ed5" ]
110-
[ "linol-lwt.0.5" "git+https://github.com/c-cube/linol.git#7730eabf98f657059920369b41d43e657a231ed5" ]
107+
[ "ocaml-recovery-parser.0.3.0" "git+https://github.com/serokell/ocaml-recovery-parser.git#b8207b0c919b84d5096486e59985d0137c0c4d82" ]
111108
[ "landmarks.1.4" "git+https://github.com/LexiFi/landmarks.git#b0c753cd2a4c4aa00dffdd3be187d8ed592fabf7" ]
112109
[ "landmarks-ppx.1.4" "git+https://github.com/LexiFi/landmarks.git#b0c753cd2a4c4aa00dffdd3be187d8ed592fabf7" ]
113110
[ "grace.0.2.0" "git+https://github.com/johnyob/grace.git#d15a6d7d07a2551d1a9934fa79c2cf84c918f990" ]

ligo.opam.template

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
pin-depends: [
2-
[ "ocaml-recovery-parser.0.2.4" "git+https://github.com/serokell/ocaml-recovery-parser.git#e05c872d1a0e8074940d995b57556121eddbf0f2" ]
3-
[ "linol.0.5" "git+https://github.com/c-cube/linol.git#7730eabf98f657059920369b41d43e657a231ed5" ]
4-
[ "linol-lwt.0.5" "git+https://github.com/c-cube/linol.git#7730eabf98f657059920369b41d43e657a231ed5" ]
2+
[ "ocaml-recovery-parser.0.3.0" "git+https://github.com/serokell/ocaml-recovery-parser.git#b8207b0c919b84d5096486e59985d0137c0c4d82" ]
53
[ "landmarks.1.4" "git+https://github.com/LexiFi/landmarks.git#b0c753cd2a4c4aa00dffdd3be187d8ed592fabf7" ]
64
[ "landmarks-ppx.1.4" "git+https://github.com/LexiFi/landmarks.git#b0c753cd2a4c4aa00dffdd3be187d8ed592fabf7" ]
75
[ "grace.0.2.0" "git+https://github.com/johnyob/grace.git#d15a6d7d07a2551d1a9934fa79c2cf84c918f990" ]

nix/ligo.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ in
5959
tezt
6060
tar-unix
6161
lambda-term
62-
parse-argv
6362
msgpck
6463
ppx_deriving
6564
ppx_deriving_yojson

scripts/install_opam_deps.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ OPAMSOLVERTIMEOUT=600 OPAMSOLVERTOLERANCE=0.0003 BLST_PORTABLE=y opam install -y
1515
cd vendors
1616
git clone https://gitlab.com/ligolang/tezos-ligo.git
1717
cd tezos-ligo
18-
git checkout fb4bad17f4d4a8b1df1ba5ea96935f63321e3a30
18+
git checkout 4d1f2bc8cdc13690328ead815dae7219561b38e5
1919
cd ../..

scripts/install_vendors_deps.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ OPAMSOLVERTIMEOUT=600 OPAMSOLVERTOLERANCE=0.0003 BLST_PORTABLE=y opam install -y
1818
cd vendors
1919
git clone https://gitlab.com/ligolang/tezos-ligo.git
2020
cd tezos-ligo
21-
git checkout fb4bad17f4d4a8b1df1ba5ea96935f63321e3a30
21+
git checkout 4d1f2bc8cdc13690328ead815dae7219561b38e5
2222
cd ../..

scripts/setup_switch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
set -e
33
set -x
44

5-
printf '' | opam switch create . ocaml-base-compiler.4.14.1 --no-install || true
5+
printf '' | opam switch create . ocaml-base-compiler.5.2.1 --no-install || true
66
eval $(opam config env)

0 commit comments

Comments
 (0)