Skip to content

Commit c2b010a

Browse files
Pass Automated Testing Suitezoj613
authored andcommitted
Ensure bin directory is not install with package.
Also update project dune file to include development packages.
1 parent 743bdb9 commit c2b010a

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

.github/workflows/build-and-test.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,7 @@ jobs:
5656
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
5757

5858
- name: Run microbenchmarks
59-
run: |
60-
opam install testu01 core_bench core_unix --yes
61-
opam exec -- dune build bin
62-
opam exec -- dune exec -- bench
59+
run: opam exec -- dune exec -- ./bin/bench.exe
6360

6461
- name: Build Docs
6562
run: opam exec -- dune build @doc

bin/dune

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
(executable
2-
(public_name crush)
2+
(name crush)
33
(modules crush)
44
(ocamlopt_flags (:standard -O3))
55
(libraries bitgenerators testu01))
66

77

88
(executable
9-
(public_name bench)
9+
(name bench)
1010
(modules bench)
1111
(ocamlopt_flags (:standard -O3))
1212
(libraries bitgenerators core_bench core_unix.command_unix))

bitgenerators.opam

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ depends: [
2020
"bisect_ppx" {dev & >= "2.5.0" & with-test}
2121
"ounit2" {with-test}
2222
"csv" {with-test}
23+
"core_bench" {dev & >= "0.16.0"}
24+
"testu01" {dev}
2325
]
26+
conflicts: ["ocaml-option-bytecode-only"]
2427
build: [
2528
["dune" "subst"] {dev}
2629
[

dune-project

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,12 @@
3030
(bisect_ppx
3131
(and :dev (>= 2.5.0) :with-test))
3232
(ounit2 :with-test)
33-
(csv :with-test))
33+
(csv :with-test)
34+
(core_bench
35+
(and :dev (>= 0.16.0)))
36+
(testu01 :dev))
3437
(tags
35-
("scientific computing" "psuedo-random numbers")))
38+
("scientific computing" "psuedo-random numbers"))
39+
(conflicts "ocaml-option-bytecode-only"))
3640

3741
; See the complete stanza docs at https://dune.readthedocs.io/en/stable/dune-files.html#dune-project

0 commit comments

Comments
 (0)