Add -r flag to bench #153
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Test | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-test: | |
name: Build and Test | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
ocaml-compiler: | |
- 4.14.x | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Use OCaml ${{ matrix.ocaml-compiler }} | |
uses: ocaml/setup-ocaml@v2 | |
with: | |
ocaml-compiler: ${{ matrix.ocaml-compiler }} | |
dune-cache: ${{ matrix.os == 'ubuntu-latest' }} | |
- name: Install opam packages | |
run: opam install --deps-only . | |
- name: Run build | |
run: opam exec -- dune build | |
- name: Install merlin | |
run: | | |
opam pin merlin-lib git+https://github.com/pitag-ha/merlin#add-query-num-414 | |
opam pin merlin git+https://github.com/pitag-ha/merlin#add-query-num-414 | |
- name: Install cb-check | |
run: opam pin -y cb-check https://github.com/ocurrent/current-bench.git | |
- name: Run tests | |
run: opam exec -- dune test | |
lint-fmt: | |
strategy: | |
matrix: | |
ocaml-compiler: | |
- 4.14.x | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Use OCaml ${{ matrix.ocaml-compiler }} | |
uses: ocaml/setup-ocaml@v2 | |
with: | |
ocaml-compiler: ${{ matrix.ocaml-compiler }} | |
dune-cache: true | |
- name: Install ocamlformat | |
run: opam install ocamlformat=$(awk -F = '/^version=/{print $2}' .ocamlformat) | |
- name: dune fmt | |
run: opam exec -- dune fmt |