Skip to content

Commit f30eed8

Browse files
authored
Merge pull request #11 from kit-ty-kate/bench-dune-profile
Only build the benchmarking tool when the bench dune profile is used
2 parents d464704 + 3bfe853 commit f30eed8

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ jobs:
3434

3535
- run: opam install . --deps-only --with-test
3636

37-
- run: opam exec -- dune build -p notty-community
37+
- run: opam exec -- dune build
3838

39-
- run: opam exec -- dune runtest -p notty-community
39+
- run: opam exec -- dune runtest
4040

4141
lint-doc:
4242
runs-on: ubuntu-latest

benchmarks/dune

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
(executable
22
(name speed)
3+
(enabled_if (= %{profile} "bench"))
34
(libraries notty-community notty-community.unix common unmark unmark.cli))

notty-community.opam

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ depends: [
2222
"cppo" {build & >= "1.1.0"}
2323
"uutf" {>= "1.0.0"}
2424
"uucp" {with-dev-setup}
25+
"lwt" {with-test}
2526
"odoc" {with-doc}
2627
]
2728
depopts: ["lwt"]

0 commit comments

Comments
 (0)