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
cbe611b7
Commit
cbe611b7
authored
Sep 01, 2021
by
Louis Gesbert
Browse files
Much simpler static linking
parent
d866c79a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
.gitlab-ci.yml
.gitlab-ci.yml
+2
-1
No files found.
.gitlab-ci.yml
View file @
cbe611b7
...
...
@@ -18,10 +18,11 @@ 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
:
-
opam exec -- dune build --profile release @all
-
OCAMLPARAM="_,cclib=-static-pie"
opam exec -- dune build --profile release @all
-
opam exec -- dune runtest
-
mv _build/default/src/server.exe .
artifacts
:
...
...
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