Skip to content

Commit

Permalink
ci: build microbenchmarks
Browse files Browse the repository at this point in the history
Fixes #10682

Signed-off-by: Etienne Millon <[email protected]>
  • Loading branch information
emillon committed Jul 2, 2024
1 parent 8cc0c51 commit f563c5d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -271,3 +271,11 @@ jobs:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
- uses: actions/checkout@v4
- run: opam switch create . -y

build-microbench:
name: Build microbenchmarks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v22
- run: nix develop .#microbench -c make dune build bench/micro
9 changes: 9 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,15 @@
that can build Dune and the Coq testsuite.
'';
};
microbench = makeDuneDevShell {
extraBuildInputs = with pkgs.ocamlPackages; [
core_bench
];
meta.description = ''
Provides a minimal shell environment that can build the
microbenchmarks.
'';
};

scope = makeDuneDevShell {
duneFromScope = true;
Expand Down

0 comments on commit f563c5d

Please sign in to comment.