package mybuild
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=3ddc587181ab66d455afb96923a512870bb5b531d2664358a660720190e64037
sha512=266db5e98eb8dd701567fb47d6d2b410527d3cfdf7bd3661beddbefe730d7e87ace5d3a6302674d2ec1339a7b78e66586bd6aeba88df79767d40d6c1b402aecd
Description
README
Mybuild
Small library to generate OCaml file with the project version extracted from git + command-line utility to do the same.
How to use
Add the file gen_version.ml in your project:
let () = Mybuild.Version.save Sys.argv.(1)
Add the following rules in dune:
(executable (name gen_version) (libraries mybuild) (modules gen_version))
(rule (target version.ml) (deps (universe)) (action (run ./gen_version.exe %{target})))
Then use Version.id in your program as needed.
Dev Dependencies
None
Optional Dependencies
None
Used by (3)
- elasticsearch-cli
- esgg
-
sqlgg
>= "20200521"
Conflicts
None
Build status
Results of building mybuild with each compiler on check.ci.ocaml.org, run of against opam-repository 7cdc698. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
| Version | OCaml 4.11 | OCaml 4.14 | OCaml 5.2 | OCaml 5.4 | OCaml 5.5 |
|---|---|---|---|---|---|
| 7 (this version) | good | good | good | good | good |
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure