forked from herd/herdtools7
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (42 loc) · 1.33 KB
/
make-test-all.yml
File metadata and controls
56 lines (42 loc) · 1.33 KB
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
47
48
49
50
51
52
53
54
55
name: Make all tests
on:
pull_request:
paths:
- ".github/workflows/make-test-all.yml"
# push:
workflow_dispatch:
schedule:
# Prime the caches every Monday
- cron: 0 1 * * MON
permissions: read-all
# Copy-pasted from https://stackoverflow.com/questions/66335225/how-to-cancel-previous-runs-in-the-pr-when-you-push-new-commitsupdate-the-curre
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:
fail-fast: false
matrix:
ocaml-version:
- "4.08.1"
- "4.14"
- "5.3"
name: Make test on OCaml v${{ matrix.ocaml-version }}
runs-on: ubuntu-latest
env:
DUNE_CACHE: 'enabled-except-user-rules'
steps:
- name: Checkout tree
uses: actions/checkout@v4
- name: Set-up OCaml ${{ matrix.ocaml-version }}
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-version }}
dune-cache: true
- name: Install herdtools7's dependencies
run: opam install . --deps-only --with-test
- name: Install carpenter dependencies
run: opam install feat qcheck re logs cmdliner
- run: opam exec -- make build DUNE_PROFILE=dev
- run: opam exec -- make test-all DUNE_PROFILE=dev