forked from fp2022-helper/fp2024
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 824 Bytes
/
master.yml
File metadata and controls
38 lines (32 loc) · 824 Bytes
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
name: Build master
on: [push, pull_request]
jobs:
build:
defaults:
run:
shell: bash
runs-on: ubuntu-22.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: "4.14.2"
- name: Install dependencies
run: |
opam init
opam update
make deps
opam install --yes . --deps-only --with-test --yes
- name: Check formatting
run: |
eval $(opam env)
dune build @fmt --profile=release
- name: Run tests
run: |
eval $(opam env)
dune runtest --profile=release