Migrate modality annotations into the parsetree #12341
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: ocamlformat | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
ocaml-compiler: | |
- "4.14.0" | |
steps: | |
- name: Checkout the Flambda backend repo | |
uses: actions/checkout@master | |
with: | |
path: 'flambda_backend' | |
- name: Setup OCaml ${{ matrix.ocaml-compiler }} | |
uses: ocaml/setup-ocaml@v2 | |
with: | |
ocaml-compiler: ${{ matrix.ocaml-compiler }} | |
- name: Install a recent version of re | |
run: opam install 're>=1.10.0' | |
- name: Install ocamlformat 0.24.1 | |
run: opam pin -y ocamlformat 0.24.1 | |
- name: autoconf | |
working-directory: flambda_backend | |
run: autoconf | |
- name: configure | |
working-directory: flambda_backend | |
run: | | |
./configure \ | |
--prefix=$GITHUB_WORKSPACE/_install \ | |
--enable-middle-end=flambda2 \ | |
--with-dune=/bin/false | |
- name: Check formatting of Flambda 2 and Cfg code | |
working-directory: flambda_backend | |
run: opam exec -- make check-fmt |