Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
David Declerck
www
Commits
d866c79a
Commit
d866c79a
authored
Sep 01, 2021
by
Louis Gesbert
Browse files
Revert "Static linking in CI"
This reverts commit
a30b965f
.
parent
ebe09fa9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
35 deletions
+2
-35
.gitlab-ci.yml
.gitlab-ci.yml
+0
-27
dune-project
dune-project
+1
-1
ocpsite.opam
ocpsite.opam
+1
-1
src/dune
src/dune
+0
-6
No files found.
.gitlab-ci.yml
View file @
d866c79a
...
...
@@ -18,36 +18,9 @@ build:
stage
:
build
image
:
registry.ocamlpro.com/ocamlpro/ocaml-docker-images:4.12
before_script
:
-
sudo apk add openssl-libs-static
-
opam switch create . ocaml-system --deps-only --locked
-
opam clean --switch-cleanup
script
:
-
|
echo >src/linking.sexp "\
(
-noautolink -verbose
-cclib -Wl,-Bstatic
-cclib -static
-cclib -no-pie
-cclib -static-libgcc
-cclib -lssl_stubs
-cclib -lssl
-cclib -lcrypto
-cclib -lcamlstr
-cclib -loverlap_stubs_stubs
-cclib -ldigestif_c_stubs
-cclib -lmtime_clock_stubs
-cclib -lrt
-cclib -lmirage_crypto_rng_unix_stubs
-cclib -lmirage_crypto_stubs
-cclib -lcstruct_stubs
-cclib -llwt_unix_stubs
-cclib -lev
-cclib -lthreadsnat
-cclib -lunix
-cclib -lbigstringaf_stubs
-cclib -lc
)"
-
opam exec -- dune build --profile release @all
-
opam exec -- dune runtest
-
mv _build/default/src/server.exe .
...
...
dune-project
View file @
d866c79a
...
...
@@ -10,7 +10,7 @@
(name ocpsite)
(depends
(ocaml
(>= 4.1
0
))
(>= 4.1
2
))
(dream
(>= 1.0.0~alpha2))
(crunch
...
...
ocpsite.opam
View file @
d866c79a
...
...
@@ -3,7 +3,7 @@ opam-version: "2.0"
license: "ISC"
depends: [
"dune" {>= "2.0"}
"ocaml" {>= "4.1
0
"}
"ocaml" {>= "4.1
2
"}
"dream" {>= "1.0.0~alpha2"}
"crunch" {>= "3.2.0"}
"omd" {>= "2.0.0~alpha2"}
...
...
src/dune
View file @
d866c79a
(executable
(public_name server)
(modules content server template)
(flags (:standard (:include linking.sexp)))
(libraries dream omd))
(rule
(target linking.sexp)
(mode fallback)
(action (with-stdout-to %{target} (run echo "()"))))
(rule
(targets template.ml)
(deps template.eml.html)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment