forked from ocaml-flambda/flambda-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (36 loc) · 1.06 KB
/
ocamlformat.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: ocamlformat
on: [push, 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=closure \
--with-dune=/bin/false
- name: Check formatting of Flambda 2 and Cfg code
working-directory: flambda_backend
run: opam exec -- make check-fmt